1 date.elements.inc _date_popup_time_granularity($element)

Date popup time granularity.

File

core/modules/date/date.elements.inc, line 1285
Date forms and form themes and validation.

Code

function _date_popup_time_granularity($element) {
  $granularity = date_format_order($element['#date_format']);
  return array_intersect($granularity, array('hour', 'minute', 'second'));
}