You are here

function theme_html5_tools_time in HTML5 Tools 7

Returns HTML5 for a date/time.

Parameters

$variables: An associative array containing:

  • date: Human readable date/time.
  • isodate: ISO 8601 formatted date.
2 theme calls to theme_html5_tools_time()
html5_tools_preprocess_comment in ./html5_tools.module
Implements hook_preprocess_comment().
html5_tools_preprocess_node in ./html5_tools.module
Implements hook_preprocess_node().

File

./html5_tools.module, line 248

Code

function theme_html5_tools_time($variables) {
  $attributes['datetime'] = $variables['isodate'];
  return '<time' . drupal_attributes($attributes) . '>' . $variables['date'] . '</time>';
}