function date_granularity_names in Date 6
Same name and namespace in other branches
- 5.2 date_api.module \date_granularity_names()
- 5 date.inc \date_granularity_names()
- 6.2 date_api.module \date_granularity_names()
- 7.3 date_api/date_api.module \date_granularity_names()
- 7 date_api/date_api.module \date_granularity_names()
- 7.2 date_api/date_api.module \date_granularity_names()
Array of granularity options and their labels
Return value
array
3 calls to date_granularity_names()
- date_field_settings_form in date/
date_admin.inc - date_widget_settings_form in date/
date_admin.inc - theme_date_text_parts in date/
date_admin.inc - Display the text/select options for date parts in a table for easier readability.
File
- ./
date_api.module, line 384 - This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.
Code
function date_granularity_names() {
return array(
'year' => t('Year'),
'month' => t('Month'),
'day' => t('Day'),
'hour' => t('Hour'),
'minute' => t('Minute'),
'second' => t('Second'),
);
}