You are here

function partial_date_timezone_option_is_selectable in Partial Date 7

Helper function to control how and if the timezone component should be rendered.

1 call to partial_date_timezone_option_is_selectable()
_partial_date_field_widget_form in ./partial_date.admin.inc
Implements hook_field_widget_form().

File

./partial_date.module, line 1043
Defines a date element that allows for any combination of date granularity settings.

Code

function partial_date_timezone_option_is_selectable($tz_handling) {
  return $tz_handling == 'none' || $tz_handling == 'date';
}