function date_sql_handler::granularity_form in Date 5.2
Same name and namespace in other branches
- 6.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 693
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;
}