name = 'members_listing'; $view->description = 'Atrium > Members'; $view->tag = 'atrium'; $view->base_table = 'users'; $view->core = 0; $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' => 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, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'exclude' => 0, 'id' => 'picture', 'table' => 'users', 'field' => 'picture', 'override' => array( 'button' => 'Override', ), '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, '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', 'override' => array( 'button' => 'Override', ), ), 'rid' => array( 'label' => 'Roles', 'type' => 'separator', 'separator' => ', ', 'empty' => '', 'exclude' => 0, 'id' => 'rid', 'table' => 'users_roles', 'field' => 'rid', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'name' => array( 'order' => 'ASC', 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => 1, 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'users', 'field' => 'status', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'current' => array( 'operator' => '=', 'value' => '', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'current', 'table' => 'spaces', 'field' => 'current', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'spaces_feature', 'spaces_feature' => 'atrium_members', 'perm' => 'create users', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Active users'); $handler->override_option('use_ajax', TRUE); $handler->override_option('items_per_page', 25); $handler->override_option('use_pager', '1'); $handler->override_option('distinct', 1); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'picture' => 'picture', 'name' => 'name', 'groups' => 'groups', 'rid' => 'rid', 'is_admin' => 'name', 'managelink' => 'managelink', 'managelinkadmin' => 'managelink', ), 'info' => array( 'picture' => array( 'sortable' => 0, 'separator' => '', ), 'name' => array( 'sortable' => 0, 'separator' => '', ), 'groups' => array( 'separator' => '', ), 'rid' => array( 'separator' => '', ), 'is_admin' => array( 'sortable' => 0, 'separator' => '', ), 'managelink' => array( 'separator' => '', ), 'managelinkadmin' => array( 'separator' => '', ), ), 'default' => '-1', )); $handler = $view->new_display('page', 'Active users', 'page_1'); $handler->override_option('access', array( 'type' => 'perm', 'perm' => 'create users', )); $handler->override_option('path', 'members/all'); $handler->override_option('menu', array( 'type' => 'tab', 'title' => 'All users', 'description' => '', 'weight' => '0', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'normal', 'title' => 'Users', 'description' => '', 'weight' => '0', 'name' => 'navigation', )); $handler = $view->new_display('page', 'Blocked users', 'page_2'); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => '0', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'users', 'field' => 'status', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'current' => array( 'operator' => '=', 'value' => '', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'current', 'table' => 'spaces', 'field' => 'current', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('title', 'Blocked users'); $handler->override_option('path', 'members/blocked'); $handler->override_option('menu', array( 'type' => 'tab', 'title' => 'Blocked users', 'description' => '', 'weight' => '2', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler = $view->new_display('page', 'Member directory', 'page_3'); $handler->override_option('fields', array( 'picture' => 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, 'imagecache_preset' => 'user-m', 'exclude' => 0, 'id' => 'picture', 'table' => 'users', 'field' => 'picture', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'name' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'none', 'override' => array( 'button' => 'Use default', ), ), )); $handler->override_option('access', array( 'type' => 'spaces_feature', 'spaces_feature' => 'atrium_members', 'perm' => 'access content', )); $handler->override_option('title', 'Member directory'); $handler->override_option('items_per_page', 30); $handler->override_option('style_plugin', 'grid'); $handler->override_option('style_options', array( 'grouping' => '', 'columns' => '3', 'alignment' => 'horizontal', )); $handler->override_option('path', 'members/directory'); $handler->override_option('menu', array( 'type' => 'default tab', 'title' => 'Directory', 'description' => '', 'weight' => '-10', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'normal', 'title' => 'Members', 'description' => '', 'weight' => '0', 'name' => 'features', )); $translatables['members_listing'] = array( t('Active users'), t('Blocked users'), t('Defaults'), t('Member directory'), ); $views[$view->name] = $view; return $views; }