function _event_calendar_installed_instances in Event Calendar 7
Callback to define instances of fields.
1 call to _event_calendar_installed_instances()
- _create_content_type in ./
event_calendar.install - Function to create content type and its fields.
File
- ./
event_calendar.install, line 245 - install file for Event Calendar module.
Code
function _event_calendar_installed_instances($t) {
return array(
'event_calendar_status' => array(
'field_name' => 'event_calendar_status',
'label' => $t('Status'),
'description' => $t('Describe Event status'),
'default_value' => array(
'0' => array(
'tid' => _get_term_from_name('pending', TAXONOMY_TYPE),
),
),
'required' => TRUE,
'display' => array(
'default' => array(
'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
),
'teaser' => array(
'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
),
),
'widget' => array(
'type' => 'options_select',
'weight' => 10,
),
),
'event_calendar_date' => array(
'field_name' => 'event_calendar_date',
'deleted' => '0',
'description' => 'Select the start and end dates for this event.',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'date',
'settings' => array(
'format_type' => 'long',
'fromto' => 'both',
'multiple_from' => '',
'multiple_number' => '',
'multiple_to' => '',
'show_repeat_rule' => 'show',
),
'type' => 'date_default',
'weight' => 1,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'label' => 'Date',
'settings' => array(
'default_value' => 'now',
'default_value2' => 'blank',
'default_value_code' => '',
'default_value_code2' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'date',
'settings' => array(
'increment' => '15',
'input_format' => 'm/d/Y - H:i:s',
'input_format_custom' => '',
'label_position' => 'above',
'repeat_collapsed' => 0,
'text_parts' => array(),
'year_range' => '-3:+3',
),
'type' => 'date_popup',
'weight' => '-3',
),
),
);
}