function theme_partial_date in Partial Date 7
The partial date theme callback.
Allows easy override of the format if required.
1 theme call to theme_partial_date()
File
- ./
partial_date.module, line 828 - Defines a date element that allows for any combination of date granularity settings.
Code
function theme_partial_date($variables) {
$item = $variables['item'];
$settings = $variables['settings'];
$settings['format'] = $variables['format'];
$settings['is_approximate'] = !empty($variables['is_approximate']);
return partial_date_format($item, $settings);
}