function _merci_installed_instances in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.2
1 call to _merci_installed_instances()
- merci_create_cck_fields in ./
merci.install - @todo Please document this function.
File
- ./
merci.install, line 613 - merci Installer / Uninstaller
Code
function _merci_installed_instances() {
// Create the date, commercial_total, and member_total fields for the reservation.
$short_date_format = variable_get('date_format_short', 'Y-m-d H:i:s');
return array(
'field_merci_date' => array(
'field_name' => 'field_merci_date',
'label' => 'Reservation',
'description' => '',
'weight' => 0,
'required' => '1',
'entity_type' => 'node',
'bundle' => 'merci_reservation',
'widget' => array(
'weight' => '-1',
'type' => 'date_popup',
'module' => 'date',
'description' => 'Select the start and end times for your reservation.',
'settings' => array(
'input_format' => $short_date_format,
'increment' => '15',
'year_range' => '-3:+3',
'label_position' => 'above',
),
),
'settings' => array(
'default_value' => 'blank',
'default_value2' => 'same',
),
),
);
}