function date_repeat_field_field_widget_info_alter in Date 7.3
Same name and namespace in other branches
- 7.2 date_repeat_field/date_repeat_field.module \date_repeat_field_field_widget_info_alter()
Implements hook_field_widget_info_alter().
File
- date_repeat_field/
date_repeat_field.module, line 607 - Creates the option of Repeating Date fields and manages Date Repeat fields.
Code
function date_repeat_field_field_widget_info_alter(&$info) {
// This Field API hook lets us add a new setting to the widgets.
$info['date_text']['settings'] += array(
'repeat_collapsed' => 0,
);
$info['date_select']['settings'] += array(
'repeat_collapsed' => 0,
);
if (module_exists('date_popup')) {
$info['date_popup']['settings'] += array(
'repeat_collapsed' => 0,
);
}
}