function date_is_repeat_field in Date 8
Same name and namespace in other branches
- 6.2 date/date.module \date_is_repeat_field()
- 7.3 date_repeat_field/date_repeat_field.module \date_is_repeat_field()
- 7 date.module \date_is_repeat_field()
- 7.2 date_repeat_field/date_repeat_field.module \date_is_repeat_field()
6 calls to date_is_repeat_field()
- date_repeat_field_bundles in date_repeat_field/
date_repeat_field.module - Return an array of all entity types and bundles that have repeating date fields.
- date_repeat_field_date_combo_process_alter in date_repeat_field/
date_repeat_field.module - Implements hook_date_combo_process_alter().
- date_repeat_field_form_field_ui_field_edit_form_alter in date_repeat_field/
date_repeat_field.module - Implements hook_form_FORM_ID_alter() for field_ui_field_edit_form().
- date_repeat_field_page in date_repeat_field/
date_repeat_field.module - A page to list all values for a repeating date.
- date_repeat_field_show in date_repeat_field/
date_repeat_field.module - See if the user can access repeat date info for this field.
File
- date_repeat_field/
date_repeat_field.module, line 194 - Creates the option of Repeating date fields and manages Date fields that use the Date Repeat API.
Code
function date_is_repeat_field($field, $instance = NULL) {
if (is_string($field)) {
$field = field_info_field($field);
}
if (!isset($field['settings']['repeat'])) {
return FALSE;
}
$value = $field['settings']['repeat'];
// This might be either a field form or a real field.
if (is_array($value)) {
return $value['#value'];
}
else {
return $value;
}
}