You are here

function date_all_day_field_widget_info_alter in Date 7.3

Same name and namespace in other branches
  1. 8 date_all_day/date_all_day.module \date_all_day_field_widget_info_alter()
  2. 7.2 date_all_day/date_all_day.module \date_all_day_field_widget_info_alter()

Implements hook_field_widget_info_alter().

File

date_all_day/date_all_day.module, line 352
Adds All Day functionality to the Date field.

Code

function date_all_day_field_widget_info_alter(&$info) {

  // This Field API hook lets us add a new setting to the widgets.
  // Add a setting to a widget type.
  $info['date_select']['settings'] += array(
    'display_all_day' => 0,
  );
  $info['date_text']['settings'] += array(
    'display_all_day' => 0,
  );
  if (module_exists('date_popup')) {
    $info['date_popup']['settings'] += array(
      'display_all_day' => 0,
    );
  }
}