From 19039d9bd8185d0b2ccb04fa3ab87bfe6ce144cc Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 12 Jun 2017 20:28:46 +0000 Subject: [PATCH] updated info file --- mnn_multiday_event.features.field.inc | 381 +++++++++++++++++++++ mnn_multiday_event.features.inc | 15 + mnn_multiday_event.info | 22 ++ mnn_multiday_event.module | 8 + mnn_multiday_event.views_default.inc | 471 ++++++++++++++++++++++++++ 5 files changed, 897 insertions(+) create mode 100644 mnn_multiday_event.features.field.inc create mode 100644 mnn_multiday_event.features.inc create mode 100644 mnn_multiday_event.info create mode 100644 mnn_multiday_event.module create mode 100644 mnn_multiday_event.views_default.inc diff --git a/mnn_multiday_event.features.field.inc b/mnn_multiday_event.features.field.inc new file mode 100644 index 0000000..55547bf --- /dev/null +++ b/mnn_multiday_event.features.field.inc @@ -0,0 +1,381 @@ + array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_affiliate_org', + 'field_permissions' => array( + 'type' => '2', + ), + 'foreign keys' => array(), + 'indexes' => array(), + 'module' => 'civicrm_contact_ref', + 'settings' => array( + 'allowed_values' => array( + 'Individual' => array( + 'Individual' => 0, + ), + 'Household' => array( + 'Household' => 0, + ), + 'Organization' => array( + 'Organization' => 'Organization', + 'Vendor' => 0, + ), + ), + 'profile2_private' => FALSE, + ), + 'translatable' => '0', + 'type' => 'civicrm_contact_ref_contact', + ), + 'field_instance' => array( + 'bundle' => 'civicrm_multiday_event', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'civicrm_contact_ref', + 'settings' => array(), + 'type' => 'civicrm_contact_ref_link', + 'weight' => 9, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_affiliate_org', + 'label' => 'Affiliate Organization', + 'required' => FALSE, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'module' => 'civicrm_contact_ref', + 'settings' => array( + 'autocomplete_path' => 'civicrm_contact_ref/autocomplete', + 'size' => 60, + ), + 'type' => 'civicrm_contact_ref_autocomplete', + 'weight' => '10', + ), + ), + ); + + // Exported field: 'node-civicrm_multiday_event-field_building' + $fields['node-civicrm_multiday_event-field_building'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_building', + 'field_permissions' => array( + 'type' => '0', + ), + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'building', + 'parent' => '0', + ), + ), + 'profile2_private' => FALSE, + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'civicrm_multiday_event', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => 5, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_building', + 'label' => 'Building', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '7', + ), + ), + ); + + // Exported field: 'node-civicrm_multiday_event-field_class_attendance' + $fields['node-civicrm_multiday_event-field_class_attendance'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_class_attendance', + 'field_permissions' => array( + 'type' => '0', + ), + 'foreign keys' => array(), + 'indexes' => array(), + 'module' => 'number', + 'settings' => array( + 'profile2_private' => FALSE, + ), + 'translatable' => '0', + 'type' => 'number_integer', + ), + 'field_instance' => array( + 'bundle' => 'civicrm_multiday_event', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Use this field to add attendees not registered in CiviCRM.', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'number', + 'settings' => array( + 'decimal_separator' => '.', + 'prefix_suffix' => TRUE, + 'scale' => 0, + 'thousand_separator' => ' ', + ), + 'type' => 'number_integer', + 'weight' => 10, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_class_attendance', + 'label' => 'Number Attending', + 'required' => 0, + 'settings' => array( + 'max' => '', + 'min' => '', + 'prefix' => '', + 'suffix' => '', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'number', + 'settings' => array(), + 'type' => 'number', + 'weight' => '11', + ), + ), + ); + + // Exported field: 'node-civicrm_multiday_event-field_department' + $fields['node-civicrm_multiday_event-field_department'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_department', + 'field_permissions' => array( + 'type' => '2', + ), + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'department', + 'parent' => '0', + ), + ), + 'profile2_private' => FALSE, + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'civicrm_multiday_event', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => 6, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_department', + 'label' => 'Department', + 'required' => FALSE, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '6', + ), + ), + ); + + // Exported field: 'node-civicrm_multiday_event-field_pbcore_languages' + $fields['node-civicrm_multiday_event-field_pbcore_languages'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_pbcore_languages', + 'field_permissions' => array( + 'type' => '0', + ), + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'pbcore_languages', + 'parent' => 0, + ), + ), + 'profile2_private' => FALSE, + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'civicrm_multiday_event', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => 7, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_pbcore_languages', + 'label' => 'Language', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '8', + ), + ), + ); + + // Translatables + // Included for use with string extractors like potx. + t('Affiliate Organization'); + t('Building'); + t('Department'); + t('Language'); + t('Number Attending'); + t('Use this field to add attendees not registered in CiviCRM.'); + + return $fields; +} diff --git a/mnn_multiday_event.features.inc b/mnn_multiday_event.features.inc new file mode 100644 index 0000000..330f29e --- /dev/null +++ b/mnn_multiday_event.features.inc @@ -0,0 +1,15 @@ + "3.0"); + } +} diff --git a/mnn_multiday_event.info b/mnn_multiday_event.info new file mode 100644 index 0000000..efaa400 --- /dev/null +++ b/mnn_multiday_event.info @@ -0,0 +1,22 @@ +dependencies[] = "civicrm_multiday_event" +dependencies[] = "mnn_project" +dependencies[] = "views" +description = "Customizations to the CiviCRM Multiday Event" +features[ctools][] = "views:views_default:3.0" +features[field][] = "node-civicrm_multiday_event-field_affiliate_org" +features[field][] = "node-civicrm_multiday_event-field_building" +features[field][] = "node-civicrm_multiday_event-field_class_attendance" +features[field][] = "node-civicrm_multiday_event-field_department" +features[field][] = "node-civicrm_multiday_event-field_pbcore_languages" +features[views_view][] = "classes_instructor" +features[views_view][] = "mnn_multiday_event_advanced_search" +name = "MNN Multiday Event" +php = "5.2.4" + +package = "MNN Community Media Advanced" +version = "7.x-1.x" +core = "7.x" +project = "mnn_multiday_event" +project_status_url = https://github.com/cm-advanced/mnn_multiday_event + + diff --git a/mnn_multiday_event.module b/mnn_multiday_event.module new file mode 100644 index 0000000..ed80ea0 --- /dev/null +++ b/mnn_multiday_event.module @@ -0,0 +1,8 @@ +name = 'classes_instructor'; + $view->description = ''; + $view->tag = 'default'; + $view->base_table = 'node'; + $view->human_name = 'Classes: Instructor'; + $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'] = 'Classes: Instructor'; + $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['query']['options']['query_comment'] = FALSE; + $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'; + /* No results behavior: Global: Text area */ + $handler->display->display_options['empty']['area']['id'] = 'area'; + $handler->display->display_options['empty']['area']['table'] = 'views'; + $handler->display->display_options['empty']['area']['field'] = 'area'; + $handler->display->display_options['empty']['area']['empty'] = FALSE; + $handler->display->display_options['empty']['area']['content'] = '
You are not scheduled as a trainer for any class sessions.
'; + $handler->display->display_options['empty']['area']['format'] = 'full_html'; + $handler->display->display_options['empty']['area']['tokenize'] = 0; + /* Relationship: Content: Sessions (field_civicrm_multiday_session) */ + $handler->display->display_options['relationships']['field_civicrm_multiday_session_value']['id'] = 'field_civicrm_multiday_session_value'; + $handler->display->display_options['relationships']['field_civicrm_multiday_session_value']['table'] = 'field_data_field_civicrm_multiday_session'; + $handler->display->display_options['relationships']['field_civicrm_multiday_session_value']['field'] = 'field_civicrm_multiday_session_value'; + $handler->display->display_options['relationships']['field_civicrm_multiday_session_value']['required'] = 0; + $handler->display->display_options['relationships']['field_civicrm_multiday_session_value']['delta'] = '-1'; + /* 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']['alter_text'] = 0; + $handler->display->display_options['fields']['title']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['title']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['title']['alter']['external'] = 0; + $handler->display->display_options['fields']['title']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['title']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['title']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0; + $handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0; + $handler->display->display_options['fields']['title']['alter']['more_link'] = 0; + $handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['title']['alter']['trim'] = 0; + $handler->display->display_options['fields']['title']['alter']['html'] = 0; + $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE; + $handler->display->display_options['fields']['title']['element_default_classes'] = 1; + $handler->display->display_options['fields']['title']['hide_empty'] = 0; + $handler->display->display_options['fields']['title']['empty_zero'] = 0; + $handler->display->display_options['fields']['title']['hide_alter_empty'] = 1; + $handler->display->display_options['fields']['title']['link_to_node'] = 1; + /* Field: Field collection item: Session Date */ + $handler->display->display_options['fields']['field_session_date']['id'] = 'field_session_date'; + $handler->display->display_options['fields']['field_session_date']['table'] = 'field_data_field_session_date'; + $handler->display->display_options['fields']['field_session_date']['field'] = 'field_session_date'; + $handler->display->display_options['fields']['field_session_date']['relationship'] = 'field_civicrm_multiday_session_value'; + $handler->display->display_options['fields']['field_session_date']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['external'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['field_session_date']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['field_session_date']['alter']['more_link'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['trim'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['html'] = 0; + $handler->display->display_options['fields']['field_session_date']['element_label_colon'] = 1; + $handler->display->display_options['fields']['field_session_date']['element_default_classes'] = 1; + $handler->display->display_options['fields']['field_session_date']['hide_empty'] = 0; + $handler->display->display_options['fields']['field_session_date']['empty_zero'] = 0; + $handler->display->display_options['fields']['field_session_date']['hide_alter_empty'] = 1; + $handler->display->display_options['fields']['field_session_date']['settings'] = array( + 'format_type' => 'long', + 'fromto' => 'both', + 'multiple_number' => '', + 'multiple_from' => '', + 'multiple_to' => '', + 'show_repeat_rule' => 'show', + ); + $handler->display->display_options['fields']['field_session_date']['field_api_classes'] = 0; + /* Field: Content: Sessions */ + $handler->display->display_options['fields']['field_civicrm_multiday_session']['id'] = 'field_civicrm_multiday_session'; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['table'] = 'field_data_field_civicrm_multiday_session'; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['field'] = 'field_civicrm_multiday_session'; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['label'] = 'Action'; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['make_link'] = 1; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['path'] = '!1'; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['external'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['more_link'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['trim'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['html'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['element_label_colon'] = 1; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['element_default_classes'] = 1; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['hide_empty'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['empty_zero'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['hide_alter_empty'] = 1; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['type'] = 'field_collection_list'; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['settings'] = array( + 'edit' => 'Attendence', + 'delete' => '', + 'add' => '', + 'description' => 1, + ); + $handler->display->display_options['fields']['field_civicrm_multiday_session']['group_rows'] = 1; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['delta_offset'] = '0'; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['delta_reversed'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['delta_first_last'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['field_api_classes'] = 0; + /* Sort criterion: Content: Post date */ + $handler->display->display_options['sorts']['created']['id'] = 'created'; + $handler->display->display_options['sorts']['created']['table'] = 'node'; + $handler->display->display_options['sorts']['created']['field'] = 'created'; + $handler->display->display_options['sorts']['created']['order'] = 'DESC'; + /* Contextual filter: Field collection item: Trainer (field_trainer) */ + $handler->display->display_options['arguments']['field_trainer_uid']['id'] = 'field_trainer_uid'; + $handler->display->display_options['arguments']['field_trainer_uid']['table'] = 'field_data_field_trainer'; + $handler->display->display_options['arguments']['field_trainer_uid']['field'] = 'field_trainer_uid'; + $handler->display->display_options['arguments']['field_trainer_uid']['relationship'] = 'field_civicrm_multiday_session_value'; + $handler->display->display_options['arguments']['field_trainer_uid']['default_action'] = 'empty'; + $handler->display->display_options['arguments']['field_trainer_uid']['default_argument_type'] = 'fixed'; + $handler->display->display_options['arguments']['field_trainer_uid']['default_argument_skip_url'] = 0; + $handler->display->display_options['arguments']['field_trainer_uid']['summary']['number_of_records'] = '0'; + $handler->display->display_options['arguments']['field_trainer_uid']['summary']['format'] = 'default_summary'; + $handler->display->display_options['arguments']['field_trainer_uid']['summary_options']['items_per_page'] = '25'; + $handler->display->display_options['arguments']['field_trainer_uid']['break_phrase'] = 0; + $handler->display->display_options['arguments']['field_trainer_uid']['not'] = 0; + /* 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; + + /* Display: Page */ + $handler = $view->new_display('page', 'Page', 'page'); + $handler->display->display_options['path'] = 'user/%/classes-instructor'; + $handler->display->display_options['menu']['type'] = 'tab'; + $handler->display->display_options['menu']['title'] = 'Classes'; + $handler->display->display_options['menu']['weight'] = '50'; + $handler->display->display_options['menu']['context'] = 0; + $export['classes_instructor'] = $view; + + $view = new view; + $view->name = 'mnn_multiday_event_advanced_search'; + $view->description = ''; + $view->tag = 'default'; + $view->base_table = 'node'; + $view->human_name = 'MNN Multiday Event: Advanced Search'; + $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'] = 'Event Search'; + $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['query']['options']['query_comment'] = FALSE; + $handler->display->display_options['exposed_form']['type'] = 'basic'; + $handler->display->display_options['exposed_form']['options']['submit_button'] = 'Filter'; + $handler->display->display_options['exposed_form']['options']['reset_button'] = TRUE; + $handler->display->display_options['exposed_form']['options']['autosubmit'] = 0; + $handler->display->display_options['exposed_form']['options']['autosubmit_hide'] = 1; + $handler->display->display_options['pager']['type'] = 'some'; + $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( + 'title' => 'title', + 'field_session_date' => 'field_session_date', + 'nid' => 'nid', + ); + $handler->display->display_options['style_options']['default'] = '-1'; + $handler->display->display_options['style_options']['info'] = array( + 'title' => array( + 'sortable' => 0, + 'default_sort_order' => 'asc', + 'align' => '', + 'separator' => '', + 'empty_column' => 0, + ), + 'field_session_date' => array( + 'sortable' => 0, + 'default_sort_order' => 'asc', + 'align' => '', + 'separator' => '', + 'empty_column' => 0, + ), + 'nid' => array( + 'sortable' => 0, + 'default_sort_order' => 'asc', + 'align' => '', + 'separator' => '', + 'empty_column' => 0, + ), + ); + $handler->display->display_options['style_options']['override'] = 1; + $handler->display->display_options['style_options']['sticky'] = 0; + $handler->display->display_options['style_options']['empty_table'] = 0; + /* Header: Global: Text area */ + $handler->display->display_options['header']['area']['id'] = 'area'; + $handler->display->display_options['header']['area']['table'] = 'views'; + $handler->display->display_options['header']['area']['field'] = 'area'; + $handler->display->display_options['header']['area']['empty'] = TRUE; + $handler->display->display_options['header']['area']['content'] = ''; + $handler->display->display_options['header']['area']['format'] = 'full_html'; + $handler->display->display_options['header']['area']['tokenize'] = 0; + /* Relationship: Content: Sessions (field_civicrm_multiday_session) */ + $handler->display->display_options['relationships']['field_civicrm_multiday_session_value']['id'] = 'field_civicrm_multiday_session_value'; + $handler->display->display_options['relationships']['field_civicrm_multiday_session_value']['table'] = 'field_data_field_civicrm_multiday_session'; + $handler->display->display_options['relationships']['field_civicrm_multiday_session_value']['field'] = 'field_civicrm_multiday_session_value'; + $handler->display->display_options['relationships']['field_civicrm_multiday_session_value']['required'] = 0; + $handler->display->display_options['relationships']['field_civicrm_multiday_session_value']['delta'] = '-1'; + /* 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']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['title']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['title']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['title']['alter']['external'] = 0; + $handler->display->display_options['fields']['title']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['title']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['title']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0; + $handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0; + $handler->display->display_options['fields']['title']['alter']['more_link'] = 0; + $handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['title']['alter']['trim'] = 0; + $handler->display->display_options['fields']['title']['alter']['html'] = 0; + $handler->display->display_options['fields']['title']['element_label_colon'] = 1; + $handler->display->display_options['fields']['title']['element_default_classes'] = 1; + $handler->display->display_options['fields']['title']['hide_empty'] = 0; + $handler->display->display_options['fields']['title']['empty_zero'] = 0; + $handler->display->display_options['fields']['title']['hide_alter_empty'] = 1; + $handler->display->display_options['fields']['title']['link_to_node'] = 1; + /* Field: Field collection item: Session Date */ + $handler->display->display_options['fields']['field_session_date']['id'] = 'field_session_date'; + $handler->display->display_options['fields']['field_session_date']['table'] = 'field_data_field_session_date'; + $handler->display->display_options['fields']['field_session_date']['field'] = 'field_session_date'; + $handler->display->display_options['fields']['field_session_date']['relationship'] = 'field_civicrm_multiday_session_value'; + $handler->display->display_options['fields']['field_session_date']['exclude'] = TRUE; + $handler->display->display_options['fields']['field_session_date']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['external'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['field_session_date']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['field_session_date']['alter']['more_link'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['trim'] = 0; + $handler->display->display_options['fields']['field_session_date']['alter']['html'] = 0; + $handler->display->display_options['fields']['field_session_date']['element_label_colon'] = 1; + $handler->display->display_options['fields']['field_session_date']['element_default_classes'] = 1; + $handler->display->display_options['fields']['field_session_date']['hide_empty'] = 0; + $handler->display->display_options['fields']['field_session_date']['empty_zero'] = 0; + $handler->display->display_options['fields']['field_session_date']['hide_alter_empty'] = 1; + $handler->display->display_options['fields']['field_session_date']['settings'] = array( + 'format_type' => 'long', + 'fromto' => 'both', + 'multiple_number' => '', + 'multiple_from' => '', + 'multiple_to' => '', + 'show_repeat_rule' => 'show', + ); + $handler->display->display_options['fields']['field_session_date']['field_api_classes'] = 0; + /* Field: Content: Nid */ + $handler->display->display_options['fields']['nid']['id'] = 'nid'; + $handler->display->display_options['fields']['nid']['table'] = 'node'; + $handler->display->display_options['fields']['nid']['field'] = 'nid'; + $handler->display->display_options['fields']['nid']['exclude'] = TRUE; + $handler->display->display_options['fields']['nid']['alter']['alter_text'] = 1; + $handler->display->display_options['fields']['nid']['alter']['text'] = 'node/[nid] '; + $handler->display->display_options['fields']['nid']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['nid']['alter']['path'] = 'node/[nid]'; + $handler->display->display_options['fields']['nid']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['nid']['alter']['external'] = 0; + $handler->display->display_options['fields']['nid']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['nid']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['nid']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['nid']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['nid']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['nid']['alter']['more_link'] = 0; + $handler->display->display_options['fields']['nid']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['nid']['alter']['trim'] = 0; + $handler->display->display_options['fields']['nid']['alter']['html'] = 0; + $handler->display->display_options['fields']['nid']['element_label_colon'] = 1; + $handler->display->display_options['fields']['nid']['element_default_classes'] = 1; + $handler->display->display_options['fields']['nid']['hide_empty'] = 0; + $handler->display->display_options['fields']['nid']['empty_zero'] = 0; + $handler->display->display_options['fields']['nid']['hide_alter_empty'] = 1; + $handler->display->display_options['fields']['nid']['link_to_node'] = 0; + /* Field: Content: Sessions */ + $handler->display->display_options['fields']['field_civicrm_multiday_session']['id'] = 'field_civicrm_multiday_session'; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['table'] = 'field_data_field_civicrm_multiday_session'; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['field'] = 'field_civicrm_multiday_session'; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['external'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['more_link'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['trim'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['alter']['html'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['element_label_colon'] = 1; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['element_default_classes'] = 1; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['hide_empty'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['empty_zero'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['hide_alter_empty'] = 1; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['settings'] = array( + 'edit' => 'Edit', + 'delete' => '', + 'add' => '', + 'description' => 0, + 'view_mode' => 'full', + ); + $handler->display->display_options['fields']['field_civicrm_multiday_session']['group_rows'] = 1; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['delta_offset'] = '0'; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['delta_reversed'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['delta_first_last'] = 0; + $handler->display->display_options['fields']['field_civicrm_multiday_session']['field_api_classes'] = 0; + /* Sort criterion: Content: Post date */ + $handler->display->display_options['sorts']['created']['id'] = 'created'; + $handler->display->display_options['sorts']['created']['table'] = 'node'; + $handler->display->display_options['sorts']['created']['field'] = 'created'; + $handler->display->display_options['sorts']['created']['order'] = 'DESC'; + /* 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( + 'civicrm_multiday_event' => 'civicrm_multiday_event', + ); + /* Filter criterion: Content: Title */ + $handler->display->display_options['filters']['title']['id'] = 'title'; + $handler->display->display_options['filters']['title']['table'] = 'node'; + $handler->display->display_options['filters']['title']['field'] = 'title'; + $handler->display->display_options['filters']['title']['operator'] = 'contains'; + $handler->display->display_options['filters']['title']['exposed'] = TRUE; + $handler->display->display_options['filters']['title']['expose']['operator_id'] = 'title_op'; + $handler->display->display_options['filters']['title']['expose']['label'] = 'Title'; + $handler->display->display_options['filters']['title']['expose']['operator'] = 'title_op'; + $handler->display->display_options['filters']['title']['expose']['identifier'] = 'title'; + $handler->display->display_options['filters']['title']['expose']['required'] = 0; + $handler->display->display_options['filters']['title']['expose']['multiple'] = FALSE; + /* Filter criterion: Content: Language (field_pbcore_languages) */ + $handler->display->display_options['filters']['field_pbcore_languages_tid']['id'] = 'field_pbcore_languages_tid'; + $handler->display->display_options['filters']['field_pbcore_languages_tid']['table'] = 'field_data_field_pbcore_languages'; + $handler->display->display_options['filters']['field_pbcore_languages_tid']['field'] = 'field_pbcore_languages_tid'; + $handler->display->display_options['filters']['field_pbcore_languages_tid']['value'] = array( + 231 => '231', + 632 => '632', + ); + $handler->display->display_options['filters']['field_pbcore_languages_tid']['exposed'] = TRUE; + $handler->display->display_options['filters']['field_pbcore_languages_tid']['expose']['operator_id'] = 'field_pbcore_languages_tid_op'; + $handler->display->display_options['filters']['field_pbcore_languages_tid']['expose']['label'] = 'Language'; + $handler->display->display_options['filters']['field_pbcore_languages_tid']['expose']['operator'] = 'field_pbcore_languages_tid_op'; + $handler->display->display_options['filters']['field_pbcore_languages_tid']['expose']['identifier'] = 'field_pbcore_languages_tid'; + $handler->display->display_options['filters']['field_pbcore_languages_tid']['expose']['reduce'] = 0; + $handler->display->display_options['filters']['field_pbcore_languages_tid']['reduce_duplicates'] = 0; + $handler->display->display_options['filters']['field_pbcore_languages_tid']['type'] = 'select'; + $handler->display->display_options['filters']['field_pbcore_languages_tid']['vocabulary'] = 'pbcore_languages'; + $handler->display->display_options['filters']['field_pbcore_languages_tid']['error_message'] = 1; + /* Filter criterion: Content: Building (field_building) */ + $handler->display->display_options['filters']['field_building_tid']['id'] = 'field_building_tid'; + $handler->display->display_options['filters']['field_building_tid']['table'] = 'field_data_field_building'; + $handler->display->display_options['filters']['field_building_tid']['field'] = 'field_building_tid'; + $handler->display->display_options['filters']['field_building_tid']['exposed'] = TRUE; + $handler->display->display_options['filters']['field_building_tid']['expose']['operator_id'] = 'field_building_tid_op'; + $handler->display->display_options['filters']['field_building_tid']['expose']['label'] = 'Building'; + $handler->display->display_options['filters']['field_building_tid']['expose']['operator'] = 'field_building_tid_op'; + $handler->display->display_options['filters']['field_building_tid']['expose']['identifier'] = 'field_building_tid'; + $handler->display->display_options['filters']['field_building_tid']['expose']['reduce'] = 0; + $handler->display->display_options['filters']['field_building_tid']['reduce_duplicates'] = 0; + $handler->display->display_options['filters']['field_building_tid']['type'] = 'select'; + $handler->display->display_options['filters']['field_building_tid']['vocabulary'] = 'building'; + $handler->display->display_options['filters']['field_building_tid']['error_message'] = 1; + /* Filter criterion: Content: Affiliate Organization (field_affiliate_org) */ + $handler->display->display_options['filters']['field_affiliate_org_contact_id']['id'] = 'field_affiliate_org_contact_id'; + $handler->display->display_options['filters']['field_affiliate_org_contact_id']['table'] = 'field_data_field_affiliate_org'; + $handler->display->display_options['filters']['field_affiliate_org_contact_id']['field'] = 'field_affiliate_org_contact_id'; + $handler->display->display_options['filters']['field_affiliate_org_contact_id']['exposed'] = TRUE; + $handler->display->display_options['filters']['field_affiliate_org_contact_id']['expose']['operator_id'] = 'field_affiliate_org_contact_id_op'; + $handler->display->display_options['filters']['field_affiliate_org_contact_id']['expose']['label'] = 'Affiliate Organization'; + $handler->display->display_options['filters']['field_affiliate_org_contact_id']['expose']['operator'] = 'field_affiliate_org_contact_id_op'; + $handler->display->display_options['filters']['field_affiliate_org_contact_id']['expose']['identifier'] = 'field_affiliate_org_contact_id'; + $handler->display->display_options['filters']['field_affiliate_org_contact_id']['expose']['multiple'] = FALSE; + /* Filter criterion: Field collection item: Session Date - start date (field_session_date) */ + $handler->display->display_options['filters']['field_session_date_value']['id'] = 'field_session_date_value'; + $handler->display->display_options['filters']['field_session_date_value']['table'] = 'field_data_field_session_date'; + $handler->display->display_options['filters']['field_session_date_value']['field'] = 'field_session_date_value'; + $handler->display->display_options['filters']['field_session_date_value']['relationship'] = 'field_civicrm_multiday_session_value'; + $handler->display->display_options['filters']['field_session_date_value']['operator'] = '>='; + $handler->display->display_options['filters']['field_session_date_value']['exposed'] = TRUE; + $handler->display->display_options['filters']['field_session_date_value']['expose']['operator_id'] = 'field_session_date_value_op'; + $handler->display->display_options['filters']['field_session_date_value']['expose']['label'] = 'Session Start Date'; + $handler->display->display_options['filters']['field_session_date_value']['expose']['use_operator'] = 1; + $handler->display->display_options['filters']['field_session_date_value']['expose']['operator'] = 'field_session_date_value_op'; + $handler->display->display_options['filters']['field_session_date_value']['expose']['identifier'] = 'field_session_date_value'; + $handler->display->display_options['filters']['field_session_date_value']['expose']['multiple'] = FALSE; + $handler->display->display_options['filters']['field_session_date_value']['form_type'] = 'date_popup'; + /* Filter criterion: Field collection item: Session Date - end date (field_session_date:value2) */ + $handler->display->display_options['filters']['field_session_date_value2']['id'] = 'field_session_date_value2'; + $handler->display->display_options['filters']['field_session_date_value2']['table'] = 'field_data_field_session_date'; + $handler->display->display_options['filters']['field_session_date_value2']['field'] = 'field_session_date_value2'; + $handler->display->display_options['filters']['field_session_date_value2']['relationship'] = 'field_civicrm_multiday_session_value'; + $handler->display->display_options['filters']['field_session_date_value2']['operator'] = '<='; + $handler->display->display_options['filters']['field_session_date_value2']['exposed'] = TRUE; + $handler->display->display_options['filters']['field_session_date_value2']['expose']['operator_id'] = 'field_session_date_value2_op'; + $handler->display->display_options['filters']['field_session_date_value2']['expose']['label'] = 'Session End Date'; + $handler->display->display_options['filters']['field_session_date_value2']['expose']['use_operator'] = 1; + $handler->display->display_options['filters']['field_session_date_value2']['expose']['operator'] = 'field_session_date_value2_op'; + $handler->display->display_options['filters']['field_session_date_value2']['expose']['identifier'] = 'field_session_date_value2'; + $handler->display->display_options['filters']['field_session_date_value2']['expose']['multiple'] = FALSE; + $handler->display->display_options['filters']['field_session_date_value2']['form_type'] = 'date_popup'; + + /* Display: Page */ + $handler = $view->new_display('page', 'Page', 'page'); + $handler->display->display_options['path'] = 'admin/civicrm-multiday-events/manage/advanced-search'; + $handler->display->display_options['menu']['type'] = 'tab'; + $handler->display->display_options['menu']['title'] = 'Advanced Search'; + $handler->display->display_options['menu']['weight'] = '50'; + $handler->display->display_options['menu']['name'] = 'management'; + $handler->display->display_options['menu']['context'] = 0; + $handler->display->display_options['tab_options']['weight'] = '0'; + $export['mnn_multiday_event_advanced_search'] = $view; + + return $export; +}