function partial_date_element_info in Partial Date 7
Implements hook_element_info().
Provides a singular element that can handle all of the implemented partial date components; datetime granularility and timezone components.
File
- ./
partial_date.module, line 873 - Defines a date element that allows for any combination of date granularity settings.
Code
function partial_date_element_info() {
$types = array();
$types['partial_datetime_element'] = array(
'#input' => TRUE,
'#element_validate' => array(
'partial_date_element_validate',
),
'#process' => array(
'partial_date_element_process',
),
'#theme' => 'partial_date_element',
'#theme_wrappers' => array(
'form_element',
),
);
return $types;
}