Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update commons_core views exports for compatibility with VBO 6.x-1.11…

…. Moving implementation of hook_strongarm_alter into .module where it belongs.
  • Loading branch information...
commit 2218c5214a60c51158f37872624adb6dd4369880 1 parent 92f2e94
@ezra-g ezra-g authored
View
22 profiles/drupal_commons/modules/features/commons_core/commons_core.features.inc
@@ -14,28 +14,6 @@ function commons_core_ctools_plugin_api() {
}
/**
- * Implementation of hook_strongarm_alter().
- */
-function commons_core_strongarm_alter(&$items) {
- $commons_tags_vid = variable_get('commons_tags_vid', 1);
- // If these variables are set but the Commons tags vid isn't 1,
- // changing the value isn't sufficient: we need to
- // create a different variable for each one.
- if (isset($items['tagging_inject_1']) && $commons_tags_vid != 1) {
- $new_item = $items['tagging_inject_1'];
- unset($items['tagging_inject_1']);
- $new_item->name = 'tagging_inject_' . $commons_tags_vid;
- $items['tagging_inject_' . $commons_tags_vid] = $new_item;
- }
- if (isset($items['tagadelic_block_tags_1']) && $commons_tags_vid !=1) {
- $new_item = $items['tagadelic_block_tags_1'];
- unset($items['tagadelic_block_tags_1']);
- $new_item->name = 'tagadelic_block_tags_' . $commons_tags_vid;
- $items['tagadelic_block_tags_' . $commons_tags_vid] = $new_item;
- }
-}
-
-/**
* Implementation of hook_imagecache_default_presets().
*/
function commons_core_imagecache_default_presets() {
View
22 profiles/drupal_commons/modules/features/commons_core/commons_core.module
@@ -235,6 +235,28 @@ function commons_core_theme() {
}
/**
+** Implementation of hook_strongarm_alter().
+**/
+function commons_core_strongarm_alter(&$items) {
+ $commons_tags_vid = variable_get('commons_tags_vid', 1);
+ // If these variables are set but the Commons tags vid isn't 1,
+ // changing the value isn't sufficient: we need to
+ // create a different variable for each one.
+ if (isset($items['tagging_inject_1']) && $commons_tags_vid != 1) {
+ $new_item = $items['tagging_inject_1'];
+ unset($items['tagging_inject_1']);
+ $new_item->name = 'tagging_inject_' . $commons_tags_vid;
+ $items['tagging_inject_' . $commons_tags_vid] = $new_item;
+ }
+ if (isset($items['tagadelic_block_tags_1']) && $commons_tags_vid !=1) {
+ $new_item = $items['tagadelic_block_tags_1'];
+ unset($items['tagadelic_block_tags_1']);
+ $new_item->name = 'tagadelic_block_tags_' . $commons_tags_vid;
+ $items['tagadelic_block_tags_' . $commons_tags_vid] = $new_item;
+ }
+}
+
+/**
* Implementation of hook_og()
*/
function commons_core_og($op, $gid, $uid, $args) {
View
436 profiles/drupal_commons/modules/features/commons_core/commons_core.views_default.inc
@@ -1908,7 +1908,7 @@ function commons_core_views_default_views() {
),
'type' => 'textfield',
'limit' => TRUE,
- 'vid' => '2',
+ 'vid' => '1',
'id' => 'tid',
'table' => 'term_node',
'field' => 'tid',
@@ -2894,7 +2894,7 @@ function commons_core_views_default_views() {
),
'type' => 'textfield',
'limit' => TRUE,
- 'vid' => '2',
+ 'vid' => '1',
'id' => 'tid',
'table' => 'term_node',
'field' => 'tid',
@@ -4796,6 +4796,7 @@ function commons_core_views_default_views() {
'type' => 'type',
'title' => 'title',
'comment_count' => 'title',
+ 'teaser' => 'teaser',
'name' => 'name',
'group_nid' => 'group_nid',
'last_updated' => 'last_updated',
@@ -4815,6 +4816,9 @@ function commons_core_views_default_views() {
'sortable' => 0,
'separator' => '',
),
+ 'teaser' => array(
+ 'separator' => '',
+ ),
'name' => array(
'sortable' => 0,
'separator' => '',
@@ -4835,47 +4839,184 @@ function commons_core_views_default_views() {
),
'default' => '-1',
'execution_type' => '1',
+ 'max_performance' => 0,
'display_type' => '1',
- 'hide_select_all' => 0,
- 'skip_confirmation' => 1,
+ 'hide_selector' => 0,
+ 'preserve_selection' => 1,
'display_result' => 0,
'merge_single_action' => 1,
- 'selected_operations' => array(
- 'commons_core_nodeunread_action' => 'commons_core_nodeunread_action',
- 'flag_nodes:1980f2a3af0b5c3577850d4ba2600405' => 0,
- 'node_assign_owner_action' => 0,
- 'views_bulk_operations_delete_node_action' => 0,
- 'node_mass_update:a27b9efabcd054685a549378b174ad11' => 0,
- 'system_message_action' => 0,
- 'views_bulk_operations_ruleset_action_rules_set_1' => 0,
- 'views_bulk_operations_action' => 0,
- 'views_bulk_operations_script_action' => 0,
- 'node_make_sticky_action' => 0,
- 'node_make_unsticky_action' => 0,
- 'node_mass_update:c4d3b28efb86fd703619a50b74d43794' => 0,
- 'commons_core_noderead_action' => 0,
- 'views_bulk_operations_fields_action' => 0,
- 'views_bulk_operations_taxonomy_action' => 0,
- 'views_bulk_operations_argument_selector_action' => 0,
- 'node_promote_action' => 0,
- 'node_mass_update:14de7d028b4bffdf2b4a266562ca18ac' => 0,
- 'node_mass_update:9c585624b9b3af0b4687d5f97f35e047' => 0,
- 'node_publish_action' => 0,
- 'system_goto_action' => 0,
- 'node_unpromote_action' => 0,
- 'node_mass_update:8ce21b08bb8e773d10018b484fe4815e' => 0,
- 'node_save_action' => 0,
- 'system_send_email_action' => 0,
- 'flag_nodes:76e4c513dfadc798e2eb84ad0a677401' => 0,
- 'node_mass_update:0ccad85c1ebe4c9ceada1aa64293b080' => 0,
- 'node_unpublish_action' => 0,
- 'node_unpublish_by_keyword_action' => 0,
- 'pathauto_node_update_alias_multiple:620e193b20ba9caa374fea9ca0ad38f0' => 0,
- ),
- 'views_bulk_operations_fields_action' => array(
- 'php_code' => 0,
- 'display_fields' => array(
- '_all_' => '_all_',
+ 'operations' => array(
+ 'flag_nodes-1980f2a3af0b5c3577850d4ba2600405' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_assign_owner_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'views_bulk_operations_delete_node_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_mass_update-a27b9efabcd054685a549378b174ad11' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'system_message_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'views_bulk_operations_ruleset_action_rules_set_1' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'views_bulk_operations_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'views_bulk_operations_script_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'imagecache_flush_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'imagecache_generate_all_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'imagecache_generate_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_make_sticky_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_make_unsticky_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_mass_update-c4d3b28efb86fd703619a50b74d43794' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'commons_core_noderead_action' => array(
+ 'selected' => 1,
+ 'skip_confirmation' => 1,
+ 'label' => '',
+ ),
+ 'commons_core_nodeunread_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'views_bulk_operations_fields_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ 'settings' => array(
+ 'php_code' => 0,
+ 'show_tokens' => 0,
+ 'display_fields' => array(
+ '_all_' => '_all_',
+ ),
+ ),
+ ),
+ 'views_bulk_operations_taxonomy_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'views_bulk_operations_argument_selector_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_promote_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_mass_update-14de7d028b4bffdf2b4a266562ca18ac' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_mass_update-9c585624b9b3af0b4687d5f97f35e047' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_publish_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'system_goto_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_unpromote_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_mass_update-8ce21b08bb8e773d10018b484fe4815e' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_save_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'system_send_email_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'flag_nodes-76e4c513dfadc798e2eb84ad0a677401' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_mass_update-0ccad85c1ebe4c9ceada1aa64293b080' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_unpublish_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_unpublish_by_keyword_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'pathauto_node_update_alias_multiple-620e193b20ba9caa374fea9ca0ad38f0' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
),
),
));
@@ -5323,47 +5464,184 @@ function commons_core_views_default_views() {
),
'default' => '-1',
'execution_type' => '1',
+ 'max_performance' => 0,
'display_type' => '1',
- 'hide_select_all' => 0,
- 'skip_confirmation' => 1,
+ 'hide_selector' => 0,
+ 'preserve_selection' => 1,
'display_result' => 0,
'merge_single_action' => 1,
- 'selected_operations' => array(
- 'commons_core_noderead_action' => 'commons_core_noderead_action',
- 'flag_nodes:1980f2a3af0b5c3577850d4ba2600405' => 0,
- 'node_assign_owner_action' => 0,
- 'views_bulk_operations_delete_node_action' => 0,
- 'node_mass_update:a27b9efabcd054685a549378b174ad11' => 0,
- 'system_message_action' => 0,
- 'views_bulk_operations_ruleset_action_rules_set_1' => 0,
- 'views_bulk_operations_action' => 0,
- 'views_bulk_operations_script_action' => 0,
- 'node_make_sticky_action' => 0,
- 'node_make_unsticky_action' => 0,
- 'node_mass_update:c4d3b28efb86fd703619a50b74d43794' => 0,
- 'commons_core_nodeunread_action' => 0,
- 'views_bulk_operations_fields_action' => 0,
- 'views_bulk_operations_taxonomy_action' => 0,
- 'views_bulk_operations_argument_selector_action' => 0,
- 'node_promote_action' => 0,
- 'node_mass_update:14de7d028b4bffdf2b4a266562ca18ac' => 0,
- 'node_mass_update:9c585624b9b3af0b4687d5f97f35e047' => 0,
- 'node_publish_action' => 0,
- 'system_goto_action' => 0,
- 'node_unpromote_action' => 0,
- 'node_mass_update:8ce21b08bb8e773d10018b484fe4815e' => 0,
- 'node_save_action' => 0,
- 'system_send_email_action' => 0,
- 'flag_nodes:76e4c513dfadc798e2eb84ad0a677401' => 0,
- 'node_mass_update:0ccad85c1ebe4c9ceada1aa64293b080' => 0,
- 'node_unpublish_action' => 0,
- 'node_unpublish_by_keyword_action' => 0,
- 'pathauto_node_update_alias_multiple:620e193b20ba9caa374fea9ca0ad38f0' => 0,
- ),
- 'views_bulk_operations_fields_action' => array(
- 'php_code' => 0,
- 'display_fields' => array(
- '_all_' => '_all_',
+ 'operations' => array(
+ 'flag_nodes-1980f2a3af0b5c3577850d4ba2600405' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_assign_owner_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'views_bulk_operations_delete_node_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_mass_update-a27b9efabcd054685a549378b174ad11' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'system_message_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'views_bulk_operations_ruleset_action_rules_set_1' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'views_bulk_operations_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'views_bulk_operations_script_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'imagecache_flush_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'imagecache_generate_all_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'imagecache_generate_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_make_sticky_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_make_unsticky_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_mass_update-c4d3b28efb86fd703619a50b74d43794' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'commons_core_noderead_action' => array(
+ 'selected' => 1,
+ 'skip_confirmation' => 1,
+ 'label' => '',
+ ),
+ 'commons_core_nodeunread_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'views_bulk_operations_fields_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ 'settings' => array(
+ 'php_code' => 0,
+ 'show_tokens' => 0,
+ 'display_fields' => array(
+ '_all_' => '_all_',
+ ),
+ ),
+ ),
+ 'views_bulk_operations_taxonomy_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'views_bulk_operations_argument_selector_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_promote_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_mass_update-14de7d028b4bffdf2b4a266562ca18ac' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_mass_update-9c585624b9b3af0b4687d5f97f35e047' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_publish_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'system_goto_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_unpromote_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_mass_update-8ce21b08bb8e773d10018b484fe4815e' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_save_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'system_send_email_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'flag_nodes-76e4c513dfadc798e2eb84ad0a677401' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_mass_update-0ccad85c1ebe4c9ceada1aa64293b080' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_unpublish_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'node_unpublish_by_keyword_action' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
+ ),
+ 'pathauto_node_update_alias_multiple-620e193b20ba9caa374fea9ca0ad38f0' => array(
+ 'selected' => 0,
+ 'skip_confirmation' => 0,
+ 'label' => '',
),
),
));
@@ -6088,7 +6366,7 @@ function commons_core_views_default_views() {
'vid' => array(
'operator' => 'in',
'value' => array(
- '2' => '2',
+ '1' => '1',
),
'group' => '0',
'exposed' => FALSE,
Please sign in to comment.
Something went wrong with that request. Please try again.