function theme_varbase_time in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7.3
Returns HTML for common Drupal time fields.
Parameters
$variables: An associative array containing:
- datetime: the diplayed time formated .
- isodate: the date in ISO 8601 formate
2 theme calls to theme_varbase_time()
- varbase_support_preprocess_node in modules/
custom/ varbase_support/ includes/ preprocess.inc - Implements template_preprocess_node().
- _varbase_support_render_date_field in modules/
custom/ varbase_support/ varbase_support.inc - Render a date field.
File
- modules/
custom/ varbase_support/ theme/ theme.inc, line 13
Code
function theme_varbase_time($variables) {
$attributes['datetime'] = $variables['isodate'];
return '<time' . drupal_attributes($attributes) . '>' . $variables['date'] . '</time>';
}