-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mark
committed
Jun 12, 2017
0 parents
commit 19039d9
Showing
5 changed files
with
897 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,381 @@ | ||
<?php | ||
/** | ||
* @file | ||
* mnn_multiday_event.features.field.inc | ||
*/ | ||
|
||
/** | ||
* Implements hook_field_default_fields(). | ||
*/ | ||
function mnn_multiday_event_field_default_fields() { | ||
$fields = array(); | ||
|
||
// Exported field: 'node-civicrm_multiday_event-field_affiliate_org' | ||
$fields['node-civicrm_multiday_event-field_affiliate_org'] = array( | ||
'field_config' => 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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
/** | ||
* @file | ||
* mnn_multiday_event.features.inc | ||
*/ | ||
|
||
/** | ||
* Implements hook_views_api(). | ||
*/ | ||
function mnn_multiday_event_views_api() { | ||
list($module, $api) = func_get_args(); | ||
if ($module == "views" && $api == "views_default") { | ||
return array("version" => "3.0"); | ||
} | ||
} |
Oops, something went wrong.