Skip to content

Instantly share code, notes, and snippets.

@chadsten
Created June 19, 2013 21:55
Show Gist options
  • Select an option

  • Save chadsten/5818491 to your computer and use it in GitHub Desktop.

Select an option

Save chadsten/5818491 to your computer and use it in GitHub Desktop.
<?php
function eco_preprocess_node(&$variables, $hook) {
$sub_date = t('@date', array('@date' => date("l, M jS, Y", $variables['created'])));
$variables['submitted'] = "Submitted by " . $variables['name'] . " on " . $sub_date;
}
function eco_preprocess_comment(&$variables) {
$sub_date = t('@date', array('@date' => date("l, M jS, Y", $variables['created'])));
$variables['submitted'] = "Submitted by " . $variables['author'] . " on " . $sub_date;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment