View source
<?php
function oa_events_field_default_field_instances() {
$field_instances = array();
$field_instances['node-oa_event-body'] = array(
'bundle' => 'oa_event',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Describe the Event',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'ical' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
'notifications' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'body',
'label' => 'Description',
'required' => 0,
'settings' => array(
'display_summary' => 1,
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => 2,
),
);
$field_instances['node-oa_event-field_oa_address'] = array(
'bundle' => 'oa_event',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Location Address and/or link, i.e.,
1600 Pennsylvania Avenue, NW
Washington, DC 20500
http://www.whitehouse.gov/',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 1,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'ical' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_oa_address',
'label' => 'Location',
'required' => 0,
'settings' => array(
'linkit' => array(
'enable' => 0,
'insert_plugin' => '',
),
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => 3,
),
);
$field_instances['node-oa_event-field_oa_date'] = array(
'bundle' => 'oa_event',
'comment_alter' => 0,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'oa_events',
'settings' => array(),
'type' => 'oa_events_date_formatter',
'weight' => 4,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'ical' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 7,
),
'notifications' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_oa_date',
'label' => 'Event Date',
'required' => 1,
'settings' => array(
'default_value' => 'now',
'default_value2' => 'same',
'default_value_code' => '',
'default_value_code2' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'date',
'settings' => array(
'display_all_day' => 1,
'increment' => 15,
'input_format' => 'M j Y - g:i:sa',
'input_format_custom' => '',
'label_position' => 'above',
'repeat_collapsed' => 1,
'text_parts' => array(),
'year_range' => '-3:+3',
),
'type' => 'date_popup',
'weight' => 6,
),
);
$field_instances['node-oa_event-field_oa_geo_location'] = array(
'bundle' => 'oa_event',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'geofield',
'settings' => array(
'data' => 'full',
),
'type' => 'geofield_wkt',
'weight' => 2,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'ical' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_oa_geo_location',
'label' => 'Geocoded Location',
'required' => 0,
'settings' => array(
'local_solr' => array(
'enabled' => FALSE,
'lat_field' => 'lat',
'lng_field' => 'lng',
),
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'geocoder',
'settings' => array(
'delta_handling' => 'default',
'geocoder_field' => 'field_oa_address',
'geocoder_handler' => 'google',
'handler_settings' => array(
'google' => array(
'all_results' => 0,
'geometry_type' => 'point',
'reject_results' => array(
'APPROXIMATE' => 0,
'GEOMETRIC_CENTER' => 0,
'RANGE_INTERPOLATED' => 0,
'ROOFTOP' => 0,
),
),
),
),
'type' => 'geocoder',
'weight' => 8,
),
);
$field_instances['node-oa_event-field_oa_media'] = array(
'bundle' => 'oa_event',
'default_value' => array(),
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'file',
'settings' => array(),
'type' => 'file_default',
'weight' => 3,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'ical' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 3,
),
'notifications' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_oa_media',
'label' => 'Attachments',
'required' => 0,
'settings' => array(
'description_field' => 0,
'file_directory' => '',
'file_extensions' => '',
'max_filesize' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'media',
'settings' => array(
'allowed_schemes' => array(
'private' => 'private',
'public' => 'public',
'vimeo' => 0,
'youtube' => 0,
),
'allowed_types' => array(
'audio' => 0,
'document' => 'document',
'image' => 'image',
'video' => 0,
),
'browser_plugins' => array(
'media_default--media_browser_1' => 0,
'media_default--media_browser_my_files' => 0,
'media_internet' => 0,
'upload' => 0,
'youtube' => 0,
),
'manualcrop_crop_info' => TRUE,
'manualcrop_default_crop_area' => TRUE,
'manualcrop_enable' => FALSE,
'manualcrop_inline_crop' => FALSE,
'manualcrop_instant_crop' => FALSE,
'manualcrop_instant_preview' => TRUE,
'manualcrop_keyboard' => TRUE,
'manualcrop_maximize_default_crop_area' => FALSE,
'manualcrop_require_cropping' => array(),
'manualcrop_styles_list' => array(),
'manualcrop_styles_mode' => 'include',
'manualcrop_thumblist' => FALSE,
'progress_indicator' => 'throbber',
),
'type' => 'media_generic',
'weight' => 4,
),
);
$field_instances['node-oa_event-oa_other_spaces_ref'] = array(
'bundle' => 'oa_event',
'comment_alter' => 0,
'default_value' => NULL,
'deleted' => 0,
'description' => 'Select a list of additional Spaces that this piece of content should be visible in. This <em>doesn\'t</em> affect access control - users in the other Spaces must have access to see this content in it\'s main Space for it to be visible to them at all.',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'entityreference',
'settings' => array(
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 8,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'ical' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'oa_other_spaces_ref',
'label' => 'Visible in other Spaces',
'options_limit' => 0,
'options_limit_empty_behaviour' => 0,
'options_limit_fields' => array(
'body' => 0,
),
'required' => 0,
'settings' => array(
'behaviors' => array(
'og_widget' => array(
'access_override' => 0,
'admin' => array(
'widget_settings' => array(
'match_operator' => 'CONTAINS',
'size' => 60,
),
'widget_type' => 'entityreference_autocomplete',
),
'default' => array(
'widget_settings' => array(
'select2widgetajax' => array(
'match_operator' => 'CONTAINS',
'min_char' => 0,
'view_mode' => 'teaser',
'width' => '100%',
),
),
'widget_type' => 'select2widgetajax',
),
'status' => TRUE,
),
),
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'og',
'settings' => array(),
'type' => 'og_complex',
'weight' => 5,
),
);
$field_instances['node-oa_event-oa_section_ref'] = array(
'bundle' => 'oa_event',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'entityreference',
'settings' => array(
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 6,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'ical' => array(
'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
'weight' => 12,
),
'notifications' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'oa_section_ref',
'label' => 'Section',
'options_limit' => 1,
'options_limit_empty_behaviour' => 1,
'options_limit_fields' => array(
'body' => 0,
'oa_section_ref' => 0,
'og_group_ref' => 'og_group_ref',
),
'options_optomize_entityreferences' => 1,
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'apply_chosen' => 0,
),
'type' => 'options_select',
'weight' => 4,
),
);
$field_instances['node-oa_event-og_group_ref'] = array(
'bundle' => 'oa_event',
'comment_alter' => 0,
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'og_ui',
'settings' => array(),
'type' => 'og_list_default',
'weight' => 5,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'ical' => array(
'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
'weight' => 11,
),
'notifications' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'og_group_ref',
'label' => 'Groups audience',
'options_limit' => 0,
'options_limit_empty_behaviour' => 0,
'options_limit_fields' => array(
'body' => 0,
),
'required' => 1,
'settings' => array(
'behaviors' => array(
'og_widget' => array(
'access_override' => 1,
'admin' => array(
'widget_settings' => array(
'select2widgetajax' => array(
'match_operator' => 'CONTAINS',
'min_char' => 1,
'view_mode' => 'teaser',
'width' => '100%',
),
),
'widget_type' => 'select2widgetajax',
),
'default' => array(
'widget_settings' => array(
'select2widgetajax' => array(
'match_operator' => 'CONTAINS',
'min_char' => 1,
'view_mode' => 'teaser',
'width' => '100%',
),
),
'widget_type' => 'select2widgetajax',
),
'status' => TRUE,
),
),
'user_register_form' => FALSE,
),
'view modes' => array(
'full' => array(
'custom settings' => FALSE,
'label' => 'Full',
'type' => 'og_list_default',
),
'teaser' => array(
'custom settings' => FALSE,
'label' => 'Teaser',
'type' => 'og_list_default',
),
),
'widget' => array(
'active' => 0,
'module' => 'og',
'settings' => array(),
'type' => 'og_complex',
'weight' => 3,
),
);
$field_instances['node-oa_event-og_vocabulary'] = array(
'bundle' => 'oa_event',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'og_vocab',
'settings' => array(
'concatenate' => FALSE,
),
'type' => 'og_vocab',
'weight' => 7,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'ical' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'og_vocabulary',
'label' => 'OG vocabulary',
'options_limit' => FALSE,
'options_limit_empty_behaviour' => 0,
'options_limit_fields' => array(),
'required' => 0,
'settings' => array(
'behaviors' => array(
'taxonomy-index' => array(
'status' => TRUE,
),
),
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'og_vocab',
'settings' => array(),
'type' => 'og_vocab_complex',
'weight' => 9,
),
);
t('Attachments');
t('Describe the Event');
t('Description');
t('Event Date');
t('Geocoded Location');
t('Groups audience');
t('Location');
t('Location Address and/or link, i.e.,
1600 Pennsylvania Avenue, NW
Washington, DC 20500
http://www.whitehouse.gov/');
t('OG vocabulary');
t('Section');
t('Select a list of additional Spaces that this piece of content should be visible in. This <em>doesn\'t</em> affect access control - users in the other Spaces must have access to see this content in it\'s main Space for it to be visible to them at all.');
t('Type');
t('Visible in other Spaces');
return $field_instances;
}