public function date_sql_handler::granularity_form in Date 7.2
Same name and namespace in other branches
- 5.2 date_api_sql.inc \date_sql_handler::granularity_form()
- 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()
@todo Document this.
File
- date_api/
date_api_sql.inc, line 1001 - SQL helper for Date API.
Class
- date_sql_handler
- A class to manipulate date SQL.
Code
public function granularity_form($granularity) {
$form = array(
'#title' => t('Granularity'),
'#type' => 'radios',
'#default_value' => $granularity,
'#options' => $this
->date_parts(),
);
return $form;
}