Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$view = new view();
$view->name = 'faculty';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Faculty';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Faculty';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
'field_yp_lastname' => 'field_yp_lastname',
'field_yp_photo' => 'field_yp_photo',
'title' => 'title',
'field_yp_title' => 'title',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
'field_yp_lastname' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_yp_photo' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'title' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '<br />',
'empty_column' => 0,
),
'field_yp_title' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
);
/* Field: Content: Last name */
$handler->display->display_options['fields']['field_yp_lastname']['id'] = 'field_yp_lastname';
$handler->display->display_options['fields']['field_yp_lastname']['table'] = 'field_data_field_yp_lastname';
$handler->display->display_options['fields']['field_yp_lastname']['field'] = 'field_yp_lastname';
$handler->display->display_options['fields']['field_yp_lastname']['label'] = '';
$handler->display->display_options['fields']['field_yp_lastname']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_yp_lastname']['element_label_colon'] = FALSE;
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
/* Field: Content: Title(s) */
$handler->display->display_options['fields']['field_yp_title']['id'] = 'field_yp_title';
$handler->display->display_options['fields']['field_yp_title']['table'] = 'field_data_field_yp_title';
$handler->display->display_options['fields']['field_yp_title']['field'] = 'field_yp_title';
$handler->display->display_options['fields']['field_yp_title']['label'] = '';
$handler->display->display_options['fields']['field_yp_title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_yp_title']['delta_offset'] = '0';
$handler->display->display_options['fields']['field_yp_title']['separator'] = '<br />';
/* Sort criterion: Content: Last name (field_yp_lastname) */
$handler->display->display_options['sorts']['field_yp_lastname_value']['id'] = 'field_yp_lastname_value';
$handler->display->display_options['sorts']['field_yp_lastname_value']['table'] = 'field_data_field_yp_lastname';
$handler->display->display_options['sorts']['field_yp_lastname_value']['field'] = 'field_yp_lastname_value';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'faculty' => 'faculty',
);
/* Filter criterion: Content: Last name (field_yp_lastname) */
$handler->display->display_options['filters']['field_yp_lastname_value']['id'] = 'field_yp_lastname_value';
$handler->display->display_options['filters']['field_yp_lastname_value']['table'] = 'field_data_field_yp_lastname';
$handler->display->display_options['filters']['field_yp_lastname_value']['field'] = 'field_yp_lastname_value';
$handler->display->display_options['filters']['field_yp_lastname_value']['operator'] = 'not empty';
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['defaults']['title'] = FALSE;
$handler->display->display_options['title'] = 'Faculty Research & Activities';
$handler->display->display_options['defaults']['group_by'] = FALSE;
$handler->display->display_options['defaults']['query'] = FALSE;
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['distinct'] = TRUE;
$handler->display->display_options['defaults']['exposed_form'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'better_exposed_filters';
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Search';
$handler->display->display_options['exposed_form']['options']['reset_button'] = TRUE;
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'X Clear search filters';
$handler->display->display_options['exposed_form']['options']['bef'] = array(
'general' => array(
'allow_secondary' => 0,
'secondary_label' => 'Advanced options',
),
'keys' => array(
'bef_format' => 'default',
'more_options' => array(
'is_secondary' => 0,
'bef_filter_description' => '',
'tokens' => array(
'available' => array(
0 => 'global_types',
),
),
'rewrite' => array(
'filter_rewrite_values' => '',
),
),
),
'keys_1' => array(
'bef_format' => 'default',
'more_options' => array(
'is_secondary' => 0,
'bef_filter_description' => '',
'tokens' => array(
'available' => array(
0 => 'global_types',
),
),
'rewrite' => array(
'filter_rewrite_values' => '',
),
),
),
);
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '25';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['pager']['options']['quantity'] = '9';
$handler->display->display_options['pager']['options']['tags']['first'] = '';
$handler->display->display_options['pager']['options']['tags']['last'] = '';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['header'] = FALSE;
/* Header: Global: Unfiltered text */
$handler->display->display_options['header']['area_text_custom']['id'] = 'area_text_custom';
$handler->display->display_options['header']['area_text_custom']['table'] = 'views';
$handler->display->display_options['header']['area_text_custom']['field'] = 'area_text_custom';
$handler->display->display_options['header']['area_text_custom']['content'] = '<p>The University&rsquo;s engagement beyond the United States dates from the earliest years of the nineteenth century, when its faculty first pursued study and research abroad. Today, faculty members from all schools are involved in a multitude of international research projects and collaborations in every part of the world.</p>';
/* Header: Global: Result summary */
$handler->display->display_options['header']['result']['id'] = 'result';
$handler->display->display_options['header']['result']['table'] = 'views';
$handler->display->display_options['header']['result']['field'] = 'result';
$handler->display->display_options['header']['result']['content'] = '@total';
$handler->display->display_options['defaults']['empty'] = FALSE;
/* No results behavior: Global: Unfiltered text */
$handler->display->display_options['empty']['area_text_custom']['id'] = 'area_text_custom';
$handler->display->display_options['empty']['area_text_custom']['table'] = 'views';
$handler->display->display_options['empty']['area_text_custom']['field'] = 'area_text_custom';
$handler->display->display_options['empty']['area_text_custom']['empty'] = TRUE;
$handler->display->display_options['empty']['area_text_custom']['content'] = '<p>No faculty found matching the criteria.</p>';
$handler->display->display_options['defaults']['relationships'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
/* Field: Content: Title(s) */
$handler->display->display_options['fields']['field_yp_title']['id'] = 'field_yp_title';
$handler->display->display_options['fields']['field_yp_title']['table'] = 'field_data_field_yp_title';
$handler->display->display_options['fields']['field_yp_title']['field'] = 'field_yp_title';
$handler->display->display_options['fields']['field_yp_title']['label'] = '';
$handler->display->display_options['fields']['field_yp_title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_yp_title']['group_column'] = 'entity_id';
$handler->display->display_options['fields']['field_yp_title']['delta_offset'] = '0';
$handler->display->display_options['fields']['field_yp_title']['separator'] = '<br />';
$handler->display->display_options['defaults']['arguments'] = FALSE;
/* Contextual filter: Content: Last name (field_yp_lastname) */
$handler->display->display_options['arguments']['field_yp_lastname_value']['id'] = 'field_yp_lastname_value';
$handler->display->display_options['arguments']['field_yp_lastname_value']['table'] = 'field_data_field_yp_lastname';
$handler->display->display_options['arguments']['field_yp_lastname_value']['field'] = 'field_yp_lastname_value';
$handler->display->display_options['arguments']['field_yp_lastname_value']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['field_yp_lastname_value']['default_argument_options']['argument'] = 'a';
$handler->display->display_options['arguments']['field_yp_lastname_value']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['field_yp_lastname_value']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['field_yp_lastname_value']['summary_options']['items_per_page'] = '25';
$handler->display->display_options['arguments']['field_yp_lastname_value']['validate']['type'] = 'php';
$handler->display->display_options['arguments']['field_yp_lastname_value']['validate']['fail'] = 'ignore';
$handler->display->display_options['arguments']['field_yp_lastname_value']['glossary'] = TRUE;
$handler->display->display_options['arguments']['field_yp_lastname_value']['limit'] = '1';
$handler->display->display_options['arguments']['field_yp_lastname_value']['case'] = 'upper';
$handler->display->display_options['arguments']['field_yp_lastname_value']['path_case'] = 'lower';
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
$handler->display->display_options['filter_groups']['groups'] = array(
1 => 'AND',
2 => 'AND',
);
$handler->display->display_options['defaults']['filters'] = FALSE;
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'faculty' => 'faculty',
);
$handler->display->display_options['filters']['type']['group'] = 1;
/* Filter criterion: Content: Last name (field_yp_lastname) */
$handler->display->display_options['filters']['field_yp_lastname_value']['id'] = 'field_yp_lastname_value';
$handler->display->display_options['filters']['field_yp_lastname_value']['table'] = 'field_data_field_yp_lastname';
$handler->display->display_options['filters']['field_yp_lastname_value']['field'] = 'field_yp_lastname_value';
$handler->display->display_options['filters']['field_yp_lastname_value']['operator'] = 'not empty';
$handler->display->display_options['filters']['field_yp_lastname_value']['group'] = 1;
/* Filter criterion: Faculty by country */
$handler->display->display_options['filters']['keys']['id'] = 'keys';
$handler->display->display_options['filters']['keys']['table'] = 'search_index';
$handler->display->display_options['filters']['keys']['field'] = 'keys';
$handler->display->display_options['filters']['keys']['ui_name'] = 'Faculty by country';
$handler->display->display_options['filters']['keys']['group'] = 2;
$handler->display->display_options['filters']['keys']['exposed'] = TRUE;
$handler->display->display_options['filters']['keys']['expose']['operator_id'] = 'keys_op';
$handler->display->display_options['filters']['keys']['expose']['label'] = 'Faculty by country';
$handler->display->display_options['filters']['keys']['expose']['operator'] = 'keys_op';
$handler->display->display_options['filters']['keys']['expose']['identifier'] = 'field_yp_country_iso2';
$handler->display->display_options['filters']['keys']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
3 => 0,
4 => 0,
5 => 0,
);
$handler->display->display_options['filters']['keys']['remove_score'] = TRUE;
/* Filter criterion: Search */
$handler->display->display_options['filters']['keys_1']['id'] = 'keys_1';
$handler->display->display_options['filters']['keys_1']['table'] = 'search_index';
$handler->display->display_options['filters']['keys_1']['field'] = 'keys';
$handler->display->display_options['filters']['keys_1']['ui_name'] = 'Search';
$handler->display->display_options['filters']['keys_1']['group'] = 2;
$handler->display->display_options['filters']['keys_1']['exposed'] = TRUE;
$handler->display->display_options['filters']['keys_1']['expose']['operator_id'] = 'keys_1_op';
$handler->display->display_options['filters']['keys_1']['expose']['label'] = 'Search';
$handler->display->display_options['filters']['keys_1']['expose']['operator'] = 'keys_1_op';
$handler->display->display_options['filters']['keys_1']['expose']['identifier'] = 'populate';
$handler->display->display_options['filters']['keys_1']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
3 => 0,
4 => 0,
5 => 0,
);
$handler->display->display_options['filters']['keys_1']['remove_score'] = TRUE;
$handler->display->display_options['path'] = 'academics-research/faculty-research';
$handler->display->display_options['menu']['title'] = 'Faculty';
$handler->display->display_options['menu']['weight'] = '0';
$handler->display->display_options['menu']['name'] = 'main-menu';
$handler->display->display_options['menu']['context'] = 0;
$handler->display->display_options['menu']['context_only_inline'] = 0;
/* Display: Attachment */
$handler = $view->new_display('attachment', 'Attachment', 'attachment_1');
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['relationships'] = FALSE;
/* Relationship: Content: International activity (field_yp_international_activity) */
$handler->display->display_options['relationships']['field_yp_international_activity_value']['id'] = 'field_yp_international_activity_value';
$handler->display->display_options['relationships']['field_yp_international_activity_value']['table'] = 'field_data_field_yp_international_activity';
$handler->display->display_options['relationships']['field_yp_international_activity_value']['field'] = 'field_yp_international_activity_value';
$handler->display->display_options['relationships']['field_yp_international_activity_value']['delta'] = '-1';
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Content: Last name */
$handler->display->display_options['fields']['field_yp_lastname']['id'] = 'field_yp_lastname';
$handler->display->display_options['fields']['field_yp_lastname']['table'] = 'field_data_field_yp_lastname';
$handler->display->display_options['fields']['field_yp_lastname']['field'] = 'field_yp_lastname';
$handler->display->display_options['fields']['field_yp_lastname']['label'] = '';
$handler->display->display_options['fields']['field_yp_lastname']['element_label_colon'] = FALSE;
$handler->display->display_options['defaults']['sorts'] = FALSE;
$handler->display->display_options['defaults']['arguments'] = FALSE;
/* Contextual filter: Content: Last name (field_yp_lastname) */
$handler->display->display_options['arguments']['field_yp_lastname_value']['id'] = 'field_yp_lastname_value';
$handler->display->display_options['arguments']['field_yp_lastname_value']['table'] = 'field_data_field_yp_lastname';
$handler->display->display_options['arguments']['field_yp_lastname_value']['field'] = 'field_yp_lastname_value';
$handler->display->display_options['arguments']['field_yp_lastname_value']['default_action'] = 'summary';
$handler->display->display_options['arguments']['field_yp_lastname_value']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['field_yp_lastname_value']['default_argument_options']['argument'] = 'a';
$handler->display->display_options['arguments']['field_yp_lastname_value']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['field_yp_lastname_value']['summary']['format'] = 'unformatted_summary';
$handler->display->display_options['arguments']['field_yp_lastname_value']['summary_options']['count'] = FALSE;
$handler->display->display_options['arguments']['field_yp_lastname_value']['summary_options']['items_per_page'] = '25';
$handler->display->display_options['arguments']['field_yp_lastname_value']['summary_options']['inline'] = TRUE;
$handler->display->display_options['arguments']['field_yp_lastname_value']['summary_options']['separator'] = ' | ';
$handler->display->display_options['arguments']['field_yp_lastname_value']['specify_validation'] = TRUE;
$handler->display->display_options['arguments']['field_yp_lastname_value']['glossary'] = TRUE;
$handler->display->display_options['arguments']['field_yp_lastname_value']['limit'] = '1';
$handler->display->display_options['arguments']['field_yp_lastname_value']['case'] = 'upper';
$handler->display->display_options['arguments']['field_yp_lastname_value']['path_case'] = 'lower';
$handler->display->display_options['displays'] = array(
'page' => 'page',
'default' => 0,
);
$handler->display->display_options['inherit_arguments'] = FALSE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.