function date_sql_handler::granularity_form in Date 6.2
Same name and namespace in other branches
- 5.2 date_api_sql.inc \date_sql_handler::granularity_form()
- 7.3 date_api/date_api_sql.inc \date_sql_handler::granularity_form()
- 7 date_api/date_api_sql.inc \date_sql_handler::granularity_form()
- 7.2 date_api/date_api_sql.inc \date_sql_handler::granularity_form()
File
- ./
date_api_sql.inc, line 686 - SQL date functions.
Class
- date_sql_handler
- A class to manipulate date SQL.
Code
function granularity_form($granularity) {
$form = array(
'#title' => t('Granularity'),
'#type' => 'radios',
'#default_value' => $granularity,
'#options' => $this
->date_parts(),
);
return $form;
}