$view = new view; $view->name = 'users_angela2'; $view->description = 'Users view for Angela test'; $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', 'Defaults', 'default'); $handler->override_option('fields', array( 'name' => array( 'label' => 'Name', 'alter' => array( 'alter_text' => 0, 'text' => '[name] | [value], [value_1] | [value_2]', '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', ), 'name_1' => array( 'label' => 'Role', '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' => 'name_1', 'table' => 'role', 'field' => 'name', 'relationship' => 'none', ), 'expiry_timestamp' => array( 'label' => 'Expires', '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' => 'expiry_timestamp', 'table' => 'role_expire', 'field' => 'expiry_timestamp', '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' => 'not in', 'value' => array( '0' => 0, ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'uid', 'table' => 'users', 'field' => 'uid', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'role', 'role' => array( '5' => 5, ), )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('items_per_page', 50); $handler->override_option('use_pager', '1'); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'name' => 'name', 'value_1' => 'name', 'value' => 'name', 'value_2' => 'name', 'edit_node' => 'name', 'rid' => 'rid', 'name_1' => 'name_1', 'expiry_timestamp' => 'expiry_timestamp', ), 'info' => array( 'name' => array( 'sortable' => 0, 'separator' => '
', ), 'value_1' => array( 'sortable' => 0, 'separator' => '', ), 'value' => array( 'sortable' => 0, 'separator' => '', ), 'value_2' => array( 'sortable' => 0, 'separator' => '', ), 'edit_node' => array( 'separator' => '', ), 'rid' => array( 'separator' => '', ), 'name_1' => array( 'sortable' => 0, 'separator' => '', ), 'expiry_timestamp' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => '-1', )); $handler->override_option('row_options', array( 'inline' => array( 'name_1' => 'name_1', 'expiry_timestamp' => 'expiry_timestamp', ), 'separator' => ', ', 'hide_empty' => 1, )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'users2'); $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, 'name' => 'navigation', ));