$view = new view; $view->name = 'contacts'; $view->description = 'builds lists of contacts'; $view->tag = 'users'; $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' => array( 'label' => 'Picture', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'picture', 'table' => 'users', 'field' => 'picture', 'relationship' => 'none', ), 'value_4' => array( 'label' => 'Full Name', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'value_4', 'table' => 'profile_values_profile_fullname', 'field' => 'value', 'relationship' => 'none', ), 'mail' => array( 'label' => 'E-mail', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_user' => 'mailto', 'exclude' => 0, 'id' => 'mail', 'table' => 'users', 'field' => 'mail', 'relationship' => 'none', ), 'value' => array( 'label' => 'Cell Phone', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'value', 'table' => 'profile_values_profile_cell', 'field' => 'value', 'relationship' => 'none', ), 'value_1' => array( 'label' => 'Direct Line 1', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'value_1', 'table' => 'profile_values_profile_dphone1', 'field' => 'value', 'relationship' => 'none', ), 'value_2' => array( 'label' => 'Direct Line 2', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'value_2', 'table' => 'profile_values_profile_dphone2', 'field' => 'value', 'relationship' => 'none', ), 'value_3' => array( 'label' => 'Office Number', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'value_3', 'table' => 'profile_values_profile_office', 'field' => 'value', 'relationship' => 'none', ), 'name' => array( 'label' => 'Name', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', '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', ), )); $handler->override_option('sorts', array( 'value' => array( 'order' => 'ASC', 'id' => 'value', 'table' => 'profile_values_profile_fullname', 'field' => 'value', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'mail' => array( 'operator' => 'ends', 'value' => 'prattcc.edu', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'case' => 1, 'id' => 'mail', 'table' => 'users', 'field' => 'mail', 'relationship' => 'none', ), 'rid' => array( 'operator' => 'or', 'value' => array( '12' => '12', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'rid', 'table' => 'users_roles', 'field' => 'rid', 'relationship' => 'none', 'reduce_duplicates' => 0, ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', '%1 Staff'); $handler->override_option('use_ajax', TRUE); $handler->override_option('items_per_page', 0); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 1, 'order' => 'asc', 'columns' => array( 'picture' => 'picture', 'value_4' => 'value_4', 'mail' => 'mail', 'value' => 'value', 'value_1' => 'value_1', 'value_2' => 'value_2', 'value_3' => 'value_3', 'name' => 'name', ), 'info' => array( 'picture' => array( 'sortable' => 0, 'separator' => '', ), 'value_4' => array( 'sortable' => 1, 'separator' => '', ), 'mail' => array( 'sortable' => 1, 'separator' => '', ), 'value' => array( 'sortable' => 0, 'separator' => '', ), 'value_1' => array( 'sortable' => 0, 'separator' => '', ), 'value_2' => array( 'sortable' => 0, 'separator' => '', ), 'value_3' => array( 'sortable' => 0, 'separator' => '', ), 'name' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => '-1', )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('title', 'Contact Directory'); $handler->override_option('path', 'contact-directory'); $handler->override_option('menu', array( 'type' => 'none', 'title' => 'Contact Directory', 'description' => '', 'weight' => '0', 'name' => 'menu-about-pcc', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $handler = $view->new_display('page', 'OG Staff', 'page_2'); $handler->override_option('fields', array( 'picture' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'picture', 'table' => 'users', 'field' => 'picture', 'relationship' => 'none', 'override' => array( 'button' => 'Use default', ), ), 'value_4' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 1, 'id' => 'value_4', 'table' => 'profile_values_profile_fullname', 'field' => 'value', 'relationship' => 'none', 'override' => array( 'button' => 'Use default', ), ), 'name' => array( 'label' => '', 'alter' => array( 'alter_text' => 1, 'text' => '[value_4]', 'make_link' => 1, 'path' => 'user/[name]', 'link_class' => '', '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', ), ), 'mail' => array( 'label' => 'E-mail', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_user' => 'mailto', 'exclude' => 0, 'id' => 'mail', 'table' => 'users', 'field' => 'mail', 'relationship' => 'none', ), 'value_1' => array( 'label' => 'Direct Line 1', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'value_1', 'table' => 'profile_values_profile_dphone1', 'field' => 'value', 'relationship' => 'none', ), 'value_2' => array( 'label' => 'Direct Line 2', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'value_2', 'table' => 'profile_values_profile_dphone2', 'field' => 'value', 'relationship' => 'none', ), 'value' => array( 'label' => 'Cell Phone', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'value', 'table' => 'profile_values_profile_cell', 'field' => 'value', 'relationship' => 'none', ), 'value_3' => array( 'label' => 'Office Number', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'value_3', 'table' => 'profile_values_profile_office', 'field' => 'value', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'nid' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '%1', 'breadcrumb' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'nid', 'table' => 'og_uid', 'field' => 'nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '14' => 0, '13' => 0, '5' => 0, '12' => 0, '10' => 0, '8' => 0, '7' => 0, '4' => 0, '6' => 0, '3' => 0, '11' => 0, '9' => 0, ), 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'webform' => 0, 'poll' => 0, 'kaltura_entry' => 0, 'panel' => 0, 'athletic_home_page' => 0, 'calendar_item' => 0, 'employment_application' => 0, 'image' => 0, 'job_listing' => 0, 'my_experience' => 0, 'news_item' => 0, 'og_home_page' => 0, 'og_message' => 0, 'page' => 0, 'profile' => 0, 'program_home_page' => 0, 'story' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '6' => 0, '5' => 0, '8' => 0, '7' => 0, '1' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_is_member' => 0, 'validate_argument_php' => '', ), )); $handler->override_option('filters', array( 'mail' => array( 'operator' => 'ends', 'value' => 'prattcc.edu', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'case' => 1, 'id' => 'mail', 'table' => 'users', 'field' => 'mail', 'relationship' => 'none', ), 'rid' => array( 'operator' => 'or', 'value' => array( '14' => '14', '13' => '13', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'rid', 'table' => 'og_users_roles', 'field' => 'rid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'reduce_duplicates' => 0, ), 'picg' => array( 'id' => 'picg', 'table' => 'og_users_roles', 'field' => 'picg', ), )); $handler->override_option('style_plugin', 'grid'); $handler->override_option('style_options', array( 'grouping' => '', 'columns' => '1', 'alignment' => 'horizontal', )); $handler->override_option('row_options', array( 'inline' => array(), 'separator' => '', )); $handler->override_option('path', 'node/%/staffer'); $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, )); $handler = $view->new_display('panel_pane', 'Group Staff', 'panel_pane_1'); $handler->override_option('relationships', array( 'gid' => array( 'label' => 'Group node (member)', 'required' => 0, 'id' => 'gid', 'table' => 'og_users_roles', 'field' => 'gid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'nid' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '%1', 'breadcrumb' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'nid', 'table' => 'og_uid', 'field' => 'nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '14' => 0, '13' => 0, '5' => 0, '12' => 0, '10' => 0, '8' => 0, '7' => 0, '4' => 0, '6' => 0, '3' => 0, '11' => 0, '9' => 0, ), 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'webform' => 0, 'poll' => 0, 'kaltura_entry' => 0, 'panel' => 0, 'athletic_home_page' => 0, 'calendar_item' => 0, 'employment_application' => 0, 'image' => 0, 'job_listing' => 0, 'my_experience' => 0, 'news_item' => 0, 'og_home_page' => 0, 'og_message' => 0, 'page' => 0, 'profile' => 0, 'program_home_page' => 0, 'staff' => 0, 'story' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '6' => 0, '5' => 0, '8' => 0, '7' => 0, '1' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_is_member' => 0, 'validate_argument_php' => '', ), )); $handler->override_option('filters', array( 'mail' => array( 'operator' => 'ends', 'value' => 'prattcc.edu', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'case' => 1, 'id' => 'mail', 'table' => 'users', 'field' => 'mail', 'relationship' => 'none', ), 'rid' => array( 'operator' => 'or', 'value' => array( '14' => '14', '13' => '13', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'rid', 'table' => 'og_users_roles', 'field' => 'rid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'reduce_duplicates' => 0, ), )); $handler->override_option('pane_title', ''); $handler->override_option('pane_description', ''); $handler->override_option('pane_category', array( 'name' => 'View panes', 'weight' => 0, )); $handler->override_option('allow', array( 'use_pager' => FALSE, 'items_per_page' => FALSE, 'offset' => FALSE, 'link_to_view' => FALSE, 'more_link' => FALSE, 'path_override' => FALSE, 'title_override' => FALSE, 'exposed_form' => FALSE, )); $handler->override_option('argument_input', array( 'nid' => array( 'type' => 'user', 'context' => 'node.nid', 'panel' => '0', 'fixed' => '', 'label' => 'Organic groups: Group node', ), )); $handler->override_option('link_to_view', 0); $handler->override_option('inherit_panels_path', 0);