function date_popup_formats in Date 7
Same name and namespace in other branches
- 5.2 date_popup/date_popup.module \date_popup_formats()
- 6.2 date_popup/date_popup.module \date_popup_formats()
- 6 date_popup/date_popup.module \date_popup_formats()
- 7.3 date_popup/date_popup.module \date_popup_formats()
- 7.2 date_popup/date_popup.module \date_popup_formats()
Format options array.
TODO Remove any formats not supported by the widget, if any.
2 calls to date_popup_formats()
File
- date_popup/
date_popup.module, line 455 - A module to enable jquery calendar and time entry popups. Requires the Date API.
Code
function date_popup_formats() {
$formats = str_replace('i', 'i:s', array_keys(system_get_date_formats('short')));
$formats = drupal_map_assoc($formats);
return $formats;
}