function commons_events_element_info_alter in Drupal Commons 7.3
Implements hook_element_info_alter().
File
- modules/
commons/ commons_events/ commons_events.module, line 142
Code
function commons_events_element_info_alter(&$type) {
// Extend date_combo processing to alter the label text on the fields.
if (isset($type['date_combo'])) {
$type['date_combo']['#process'][] = 'commons_events_date_combo_element_process';
}
// Extend date_popup processing to remove the redundant descriptions on
// fields.
if (isset($type['date_popup'])) {
$type['date_popup']['#process'][] = 'commons_events_date_popup_element_process';
}
}