You are here

function chosen_pre_render_date_combo in Chosen 7.2

Render API callback: Apply Chosen to a date_combo element.

1 string reference to 'chosen_pre_render_date_combo'
chosen_element_info_alter in ./chosen.module
Implements hook_element_info_alter().

File

./chosen.module, line 258
General functions and hook implementations.

Code

function chosen_pre_render_date_combo($element) {

  // Because the date_combo field contains many different select elements, we
  // need to recurse down and apply the FAPI property to each one.
  if (isset($element['#chosen'])) {
    chosen_element_apply_property_recursive($element, $element['#chosen']);
  }
  return $element;
}