You are here

function html5_tools_preprocess_node in HTML5 Tools 7

Implements hook_preprocess_node().

File

./html5_tools.module, line 168

Code

function html5_tools_preprocess_node(&$variables) {

  // Override the $submitted variable.
  if (variable_get('html5_tools_override_submitted', 0) && $variables['display_submitted']) {
    $variables['submitted'] = t('Submitted by !username on !datetime', array(
      '!username' => $variables['name'],
      '!datetime' => theme('html5_tools_time', array(
        'date' => $variables['date'],
        'isodate' => format_date($variables['created'], 'html5_tools_iso8601'),
      )),
    ));
  }
}