name = 'admin_content'; $view->description = t('Emulates the Drupal content administration page.'); $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', t('Default'), 'default'); $handler->override_option('fields', array( 'title' => array( 'label' => t('Title'), 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'timestamp' => array( 'label' => t('New?'), 'link_to_node' => 0, 'comments' => 0, 'exclude' => 0, 'id' => 'timestamp', 'table' => 'history_user', 'field' => 'timestamp', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'type' => array( 'label' => t('Type'), 'link_to_node' => 0, 'exclude' => 0, 'id' => 'type', 'table' => 'node', 'field' => 'type', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'name' => array( 'label' => t('Author'), 'link_to_user' => 1, 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'status' => array( 'label' => t('Published'), 'type' => 'yes-no', 'not' => 0, 'exclude' => 0, 'id' => 'status', 'table' => 'node', 'field' => 'status', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'edit_node' => array( 'label' => t('Edit'), 'text' => '', 'exclude' => 0, 'id' => 'edit_node', 'table' => 'node', 'field' => 'edit_node', '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( 'title' => array( 'operator' => 'contains', 'value' => '', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'title_op', 'identifier' => 'title', 'label' => t('Title contains'), 'optional' => 1, 'remember' => 0, ), 'case' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array(), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'type_op', 'identifier' => 'type', 'label' => t('Type'), 'optional' => 1, 'single' => 1, 'remember' => 0, 'reduce' => 0, ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'promote' => array( 'operator' => '=', 'value' => 'All', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'operator' => '', 'identifier' => 'promote', 'label' => t('Promoted'), 'optional' => 1, 'remember' => 0, ), 'id' => 'promote', 'table' => 'node', 'field' => 'promote', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'status' => array( 'operator' => '=', 'value' => 'All', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'operator' => '', 'identifier' => 'status', 'label' => t('Published'), 'optional' => 1, 'remember' => 0, ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'sticky' => array( 'operator' => '=', 'value' => 'All', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'operator' => '', 'identifier' => 'sticky', 'label' => t('Sticky'), 'optional' => 1, 'remember' => 0, ), 'id' => 'sticky', 'table' => 'node', 'field' => 'sticky', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'perm', 'perm' => 'administer nodes', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', t('Content')); $handler->override_option('empty', t('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', 'timestamp' => 'title', 'type' => 'type', 'name' => 'name', 'status' => 'status', 'edit_node' => 'edit_node', ), 'info' => array( 'title' => array( 'sortable' => 1, 'separator' => ' ', ), 'timestamp' => array( 'separator' => '', ), 'type' => array( 'sortable' => 1, 'separator' => '', ), 'name' => array( 'sortable' => 1, 'separator' => '', ), 'status' => array( 'sortable' => 0, 'separator' => '', ), 'edit_node' => array( '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_script_action' => 'views_bulk_operations_script_action', 'node_make_sticky_action' => 'node_make_sticky_action', 'node_make_unsticky_action' => 'node_make_unsticky_action', 'views_bulk_operations_fields_action' => 'views_bulk_operations_fields_action', 'views_bulk_operations_taxonomy_action' => 'views_bulk_operations_taxonomy_action', 'node_promote_action' => 'node_promote_action', 'node_publish_action' => 'node_publish_action', 'node_unpromote_action' => 'node_unpromote_action', 'node_unpublish_action' => 'node_unpublish_action', ), )); $handler = $view->new_display('page', t('Page'), 'page'); $handler->override_option('path', 'admin/content/node2'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $views[$view->name] = $view; // Admin users. $view = new view; $view->name = 'admin_users'; $view->description = t('Emulates the Drupal user administration page.'); $view->tag = ''; $view->view_php = ''; $view->base_table = 'users'; $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', t('Default'), 'default'); $handler->override_option('fields', array( 'name' => array( 'label' => t('Username'), '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, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'none', ), 'status' => array( 'label' => t('Active'), '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, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'type' => 'yes-no', 'not' => 0, 'exclude' => 0, 'id' => 'status', 'table' => 'users', 'field' => 'status', 'relationship' => 'none', ), 'rid' => array( 'label' => t('Roles'), '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, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'type' => 'ul', 'separator' => ', ', 'exclude' => 0, 'id' => 'rid', 'table' => 'users_roles', 'field' => 'rid', 'relationship' => 'none', ), 'created' => array( 'label' => t('Member for'), '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, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'date_format' => 'raw time span', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'created', 'table' => 'users', 'field' => 'created', 'relationship' => 'none', ), 'access' => array( 'label' => t('Last access'), '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, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'date_format' => 'time ago', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'access', 'table' => 'users', 'field' => 'access', 'relationship' => 'none', ), 'edit_node' => array( 'label' => t('Operations'), '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, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'text' => '', 'exclude' => 0, 'id' => 'edit_node', 'table' => 'users', 'field' => 'edit_node', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'uid' => array( 'operator' => 'not in', 'value' => array( '0' => 0, ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'uid', 'table' => 'users', 'field' => 'uid', 'relationship' => 'none', ), 'rid' => array( 'operator' => 'or', 'value' => array(), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'rid_op', 'identifier' => 'rid', 'label' => t('Role'), 'optional' => 1, 'single' => 1, 'remember' => 0, 'reduce' => 0, ), 'id' => 'rid', 'table' => 'users_roles', 'field' => 'rid', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', 'reduce_duplicates' => 0, ), 'status' => array( 'operator' => '=', 'value' => 'All', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'operator' => '', 'identifier' => 'status', 'label' => t('Active'), 'optional' => 1, 'remember' => 0, ), 'id' => 'status', 'table' => 'users', 'field' => 'status', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'perm', 'perm' => 'administer users', )); $handler->override_option('cache', array( 'type' => 'none', )); $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' => 'desc', 'columns' => array( 'name' => 'name', 'status' => 'status', 'rid' => 'rid', 'created' => 'created', 'access' => 'access', 'edit_node' => 'edit_node', ), 'info' => array( 'name' => array( 'sortable' => 1, 'separator' => '', ), 'status' => array( 'sortable' => 1, 'separator' => '', ), 'rid' => array( 'separator' => '', ), 'created' => array( 'sortable' => 1, 'separator' => '', ), 'access' => array( 'sortable' => 1, 'separator' => '', ), 'edit_node' => array( 'separator' => '', ), ), 'default' => 'created', 'execution_type' => '1', 'display_type' => '0', 'hide_select_all' => 0, 'skip_confirmation' => 0, 'display_result' => 1, 'merge_single_action' => 1, 'selected_operations' => array( 'user_user_operations_block' => 'user_user_operations_block', 'views_bulk_operations_delete_user_action' => 'views_bulk_operations_delete_user_action', 'views_bulk_operations_script_action' => 'views_bulk_operations_script_action', 'views_bulk_operations_user_roles_action' => 'views_bulk_operations_user_roles_action', 'system_send_email_action' => 'system_send_email_action', 'user_user_operations_unblock' => 'user_user_operations_unblock', 'user_block_ip_action' => 0, 'user_block_user_action' => 0, 'system_message_action' => 0, 'views_bulk_operations_action' => 0, 'views_bulk_operations_profile_action' => 0, 'views_bulk_operations_argument_selector_action' => 0, 'system_goto_action' => 0, ), )); $handler = $view->new_display('page', t('Page'), 'page_1'); $handler->override_option('path', 'admin/user/user2'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $views[$view->name] = $view; return $views; }