$view = new view; $view->name = 'admin_content'; $view->description = 'View, edit and delete your site\'s content.'; $view->tag = ''; $view->view_php = ''; $view->base_table = 'node'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('fields', array( 'title' => array( 'label' => 'Title', 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'edit_node' => array( 'label' => 'Edit', 'text' => '', 'exclude' => 0, 'id' => 'edit_node', 'table' => 'node', 'field' => 'edit_node', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'name' => array( 'label' => 'Author', 'link_to_user' => 1, 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'name_1' => array( 'label' => 'Forum', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_taxonomy' => 1, 'exclude' => 0, 'id' => 'name_1', 'table' => 'term_data', 'field' => 'name', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'comment_count' => array( 'label' => 'Comments', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'set_precision' => FALSE, 'precision' => 0, 'decimal' => '.', 'separator' => ',', 'prefix' => '', 'suffix' => '', 'exclude' => 0, 'id' => 'comment_count', 'table' => 'node_comment_statistics', 'field' => 'comment_count', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'created' => array( 'label' => 'Post date', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'date_format' => 'small', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', ), 'last_updated' => array( 'label' => 'Updated / commented date', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'date_format' => 'small', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'last_updated', 'table' => 'node_comment_statistics', 'field' => 'last_updated', 'relationship' => 'none', ), 'status' => array( 'label' => 'Published', 'type' => 'yes-no', 'not' => 0, 'exclude' => 0, 'id' => 'status', 'table' => 'node', 'field' => 'status', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'changed' => array( 'order' => 'DESC', 'granularity' => 'second', 'id' => 'changed', 'table' => 'node', 'field' => 'changed', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'name' => array( 'operator' => '=', 'value' => '', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 1, 'operator' => 'name_op', 'identifier' => 'name', 'label' => 'Forum', 'optional' => 1, 'remember' => 0, ), 'case' => 1, 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'created' => array( 'operator' => '<', 'value' => array( 'type' => 'date', 'value' => '', 'min' => '', 'max' => '', ), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 1, 'operator' => 'created_op', 'identifier' => 'created', 'label' => 'Post date (YYYY-MM-DD)', 'optional' => 1, 'remember' => 0, ), 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'uid' => array( 'operator' => 'in', 'value' => '', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'uid_op', 'identifier' => 'uid', 'label' => 'User name', 'optional' => 1, 'remember' => 0, 'reduce' => 0, ), 'id' => 'uid', 'table' => 'users', 'field' => 'uid', 'relationship' => 'none', ), 'title' => array( 'operator' => 'contains', 'value' => '', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'title_op', 'identifier' => 'title', 'label' => 'Title contains', 'optional' => 1, 'remember' => 0, ), 'case' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'status' => array( 'operator' => '=', 'value' => 'All', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'operator' => '', 'identifier' => 'status', 'label' => 'Published', 'optional' => 1, 'remember' => 0, ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'role', 'role' => array( '1000006' => 1000006, '1000046' => 1000046, ), )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Advanced search: Topics'); $handler->override_option('empty', 'There are no objects satisfying the filter settings. Try changing them to get some results.'); $handler->override_option('empty_format', '1'); $handler->override_option('items_per_page', 20); $handler->override_option('use_pager', '1'); $handler->override_option('style_plugin', 'bulk'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'title' => 'title', 'edit_node' => 'title', 'name_1' => 'name_1', 'comment_count' => 'comment_count', 'created' => 'created', 'last_updated' => 'last_updated', 'name' => 'name', 'status' => 'status', ), 'info' => array( 'title' => array( 'sortable' => 1, 'separator' => ' ', ), 'edit_node' => array( 'separator' => '', ), 'name_1' => array( 'sortable' => 1, 'separator' => '', ), 'comment_count' => array( 'sortable' => 0, 'separator' => '', ), 'created' => array( 'sortable' => 1, 'separator' => '', ), 'last_updated' => array( 'sortable' => 1, 'separator' => '', ), 'name' => array( 'sortable' => 1, 'separator' => '', ), 'status' => array( 'sortable' => 1, 'separator' => '', ), ), 'default' => '-1', 'execution_type' => '1', 'display_type' => '0', 'hide_select_all' => 0, 'skip_confirmation' => 0, 'display_result' => 1, 'merge_single_action' => 0, 'selected_operations' => array( 'node_assign_owner_action' => 'node_assign_owner_action', 'views_bulk_operations_delete_node_action' => 'views_bulk_operations_delete_node_action', 'views_bulk_operations_fields_action' => 'views_bulk_operations_fields_action', 'views_bulk_operations_taxonomy_action' => 'views_bulk_operations_taxonomy_action', 'node_publish_action' => 'node_publish_action', 'node_unpublish_action' => 'node_unpublish_action', '_xmlsitemap_node_priority_operations:cd982debf0682525e281958ee8652f30' => 0, '_xmlsitemap_node_priority_operations:62f12c968d4e70a1e4d96115d19e9d80' => 0, 'nodewords_mass_delete_tags:a2d68c2ef16b18ef69991bd3f5c1a3ed' => 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, 'flag_nodes:8e9a1f54ee1ea71addef94906a717d32' => 0, 'node_make_sticky_action' => 0, 'node_make_unsticky_action' => 0, 'node_mass_update:c4d3b28efb86fd703619a50b74d43794' => 0, 'views_bulk_operations_ruleset_action_rules_market_place' => 0, 'views_bulk_operations_argument_selector_action' => 0, 'node_promote_action' => 0, 'node_mass_update:14de7d028b4bffdf2b4a266562ca18ac' => 0, 'node_mass_update:9c585624b9b3af0b4687d5f97f35e047' => 0, 'system_goto_action' => 0, 'node_unpromote_action' => 0, 'node_mass_update:8ce21b08bb8e773d10018b484fe4815e' => 0, '_xmlsitemap_node_priority_operations:07e7c9678baf4b0925a468ce3eb5a65a' => 0, 'node_save_action' => 0, 'system_send_email_action' => 0, 'flag_nodes:70248d95c8e3a5c6517e06438a7b2598' => 0, 'node_mass_update:0ccad85c1ebe4c9ceada1aa64293b080' => 0, 'node_unpublish_by_keyword_action' => 0, 'pathauto_node_operations_update' => 0, ), 'views_bulk_operations_fields_action' => array( 'php_code' => 0, 'display_fields' => array( 'field_project' => 'field_project', 'field_pic_url' => 'field_pic_url', 'field_comp_url' => 'field_comp_url', 'field_project_members' => 'field_project_members', ), '_error_element_base' => 'style_options][views_bulk_operations_fields_action][', ), )); $handler = $view->new_display('page', 'Default admin page', 'page'); $handler->override_option('path', 'admin/content/node'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'Content', 'description' => '', 'weight' => '0', 'name' => 'menu-mod-menu', )); $handler->override_option('tab_options', array( 'type' => 'normal', 'title' => 'Content search', 'description' => '', 'weight' => '0', 'name' => 'menu-mod-menu', )); $handler = $view->new_display('page', 'Advanced search page w. tabs', 'page_1'); $handler->override_option('path', 'content-advanced/topics'); $handler->override_option('menu', array( 'type' => 'default tab', 'title' => 'Topics', 'description' => '', 'weight' => '-5', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'normal', 'title' => 'Content Search', 'description' => '', 'weight' => '0', 'name' => 'menu-mod-menu', ));