function date_popup_time_granularity in Date 7.2
Same name and namespace in other branches
- 7.3 date_popup/date_popup.module \date_popup_time_granularity()
- 7 date_popup/date_popup.module \date_popup_time_granularity()
Date popup time granularity.
2 calls to date_popup_time_granularity()
- date_popup_time_format in date_popup/
date_popup.module - Date popup time format.
- date_popup_validate in date_popup/
date_popup.module - Massage the input values back into a single date.
File
- date_popup/
date_popup.module, line 249 - A module to enable jQuery calendar and time entry popups.
Code
function date_popup_time_granularity($element) {
$granularity = date_format_order($element['#date_format']);
return array_intersect($granularity, array(
'hour',
'minute',
'second',
));
}