function DateSqlHandler::granularity_form in Date 8
@todo.
File
- date_api/
lib/ Drupal/ date_api/ DateSqlHandler.php, line 874
Class
- DateSqlHandler
- A class to manipulate date SQL.
Namespace
Drupal\date_apiCode
function granularity_form($granularity) {
$form = array(
'#title' => t('Granularity'),
'#type' => 'radios',
'#default_value' => $granularity,
'#options' => $this
->date_parts(),
);
return $form;
}