$view = new view; $view->name = 'admin_users'; $view->description = 'Advanced view of '; $view->tag = 'Advanced user search, to replace default user admin page '; $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', 'Defaults', 'default'); $handler->override_option('fields', array( 'picture_bare' => array( 'label' => '', '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, 'exclude' => 0, 'id' => 'picture_bare', 'table' => 'users', 'field' => 'picture_bare', 'relationship' => 'none', ), 'name' => array( 'label' => 'Name', '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_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'none', ), 'edit_node' => array( 'label' => 'Edit link', '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, 'text' => 'edit', 'exclude' => 0, 'id' => 'edit_node', 'table' => 'users', 'field' => 'edit_node', 'relationship' => 'none', ), 'rid' => array( 'label' => '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, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'type' => 'separator', 'separator' => ', ', 'exclude' => 0, 'id' => 'rid', 'table' => 'users_roles', 'field' => 'rid', 'relationship' => 'none', ), 'created' => array( 'label' => 'Joined', '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' => 'users', 'field' => 'created', 'relationship' => 'none', ), 'access' => array( 'label' => '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, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'date_format' => 'small', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'access', 'table' => 'users', 'field' => 'access', 'relationship' => 'none', ), 'status' => array( 'label' => '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, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'type' => 'yes-no', 'not' => 0, 'exclude' => 0, 'id' => 'status', 'table' => 'users', 'field' => 'status', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'name' => array( 'order' => 'ASC', 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'uid' => array( 'operator' => 'in', 'value' => '', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 1, 'operator' => 'uid_op', 'identifier' => 'uid', 'label' => 'User name', 'optional' => 1, 'remember' => 0, 'reduce' => 0, ), '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' => 'User: Roles', 'optional' => 1, 'single' => 0, 'remember' => 0, 'reduce' => 0, ), 'id' => 'rid', 'table' => 'users_roles', 'field' => 'rid', 'relationship' => 'none', 'reduce_duplicates' => 0, ), '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' => 'Join date', 'optional' => 1, 'remember' => 0, ), 'id' => 'created', 'table' => 'users', 'field' => 'created', 'relationship' => 'none', ), 'access' => array( 'operator' => '=', 'value' => array( 'type' => 'date', 'value' => '', 'min' => '', 'max' => '', ), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 1, 'operator' => 'access_op', 'identifier' => 'access', 'label' => 'Last access date (YYYY-MM-DD)', 'optional' => 1, 'remember' => 0, ), 'id' => 'access', 'table' => 'users', 'field' => 'access', 'relationship' => 'none', ), 'status' => array( 'operator' => '=', 'value' => 'All', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'operator' => '', 'identifier' => 'status', 'label' => 'Active', 'optional' => 1, 'remember' => 0, ), 'id' => 'status', 'table' => 'users', 'field' => 'status', 'relationship' => 'none', ), 'ip_address' => array( 'operator' => '=', 'value' => '', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 1, 'operator' => 'ip_address_op', 'identifier' => 'ip_address', 'label' => 'IP address', 'optional' => 1, 'remember' => 0, ), 'case' => 1, 'id' => 'ip_address', 'table' => 'user_stats_ips', 'field' => 'ip_address', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'role', 'role' => array( '1000006' => 1000006, '1000059' => 1000059, '1000046' => 1000046, ), )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('items_per_page', 20); $handler->override_option('distinct', 1); $handler->override_option('style_plugin', 'bulk'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'picture_bare' => 'name', 'name' => 'name', 'edit_node' => 'name', 'rid' => 'rid', 'created' => 'created', 'access' => 'access', 'status' => 'status', ), 'info' => array( 'picture_bare' => array( 'sortable' => 0, 'separator' => '', ), 'name' => array( 'sortable' => 1, 'separator' => ' – ', ), 'edit_node' => array( 'separator' => '', ), 'rid' => array( 'separator' => '', ), 'created' => array( 'sortable' => 1, 'separator' => '', ), 'access' => 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' => 1, 'selected_operations' => array( 'user_badges_add_badge_action' => 'user_badges_add_badge_action', 'user_user_operations_block' => 'user_user_operations_block', 'system_message_action' => 'system_message_action', 'views_bulk_operations_profile_action' => 'views_bulk_operations_profile_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, 'views_bulk_operations_delete_user_action' => 0, 'views_bulk_operations_action' => 0, 'views_bulk_operations_script_action' => 0, 'views_bulk_operations_argument_selector_action' => 0, 'system_goto_action' => 0, 'user_badges_remove_badge_action' => 0, 'flag_users:42c1ebe70799e3127d3f3118b0891b4c' => 0, 'flag_users:7feb7b27d69974cff2e99338dd13c21f' => 0, 'user_stats_login_count_reset_action' => 0, 'user_stats_post_count_reset_action' => 0, ), )); $handler = $view->new_display('page', 'Default admin page', 'page_1'); $handler->override_option('path', 'admin/user/user'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'User search', 'description' => '', 'weight' => '0', 'name' => 'menu-mod-menu', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler = $view->new_display('page', 'Advanced search page w. tabs', 'page_2'); $handler->override_option('title', 'Advanced search: Users'); $handler->override_option('path', 'content-advanced/adv-users'); $handler->override_option('menu', array( 'type' => 'tab', 'title' => 'Users', 'description' => '', 'weight' => '10', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', ));