1 date.elements.inc _date_popup_date_granularity($element)

Date popup date granularity.

File

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

Code

function _date_popup_date_granularity($element) {
  $granularity = date_format_order($element['#date_format']);
  return array_intersect($granularity, array('month', 'day', 'year'));
}