I'm using Features
to create a feature called foo
which tracks content types and views so they can be described in code, committed to my repository and eventually pushed into the staging and production servers.
Some modules (e.g http://drupal.org/project/nodequeue, http://drupal.org/project/views_bulk_operations, http://drupal.org/project/admin_views) create some views as part of their functionality. The problem is that I can't include those views into my foo
feature. So for those specific views I have to repeat (by hand) any customization I did locally to the staging and production servers.
Any ideas?
What I've tried:
1) I tried manually adding the view name in the foo_features.info
file:
features[views_view][] = admin_content_node
but when I do drush fu foo_features -y
that line is removed and the .info
file and the view definition is not being included in the foo_features.views_default.inc
file.
2) I had a look into the database:
mysql> select vid, id, display_title, display_plugin, position from views_display;
+-----+----------+---------------+----------------+----------+
| vid | id | display_title | display_plugin | position |
+-----+----------+---------------+----------------+----------+
| 3 | default | Master | default | 1 |
| 3 | page | Page | page | 2 |
| 30 | block | Block | block | 2 |
...
| 46 | default | Defaults | default | 1 |
| 46 | system_1 | System | system | 2 |
+-----+----------+---------------+----------------+----------+
That last row (vid: 46, display_plugin: system) seemed suspicious so I've changed (directly via SQL) system
to page
. I then did drush cc all
and retried the process at [1] for including the view into the feature but without luck. I tried this because I thought that "system view displays" (whatever that means) cannot be included in features.