Skip to content

Instantly share code, notes, and snippets.

@Ferdi
Created August 30, 2012 18:40
Show Gist options
  • Save Ferdi/3537100 to your computer and use it in GitHub Desktop.
Save Ferdi/3537100 to your computer and use it in GitHub Desktop.
submitted_by override
/**
* Implements hook_process_node().
*/
function os_blog_process_node(&$variables) {
// ... if this is a blog node type and ...
$variables['submitted'] = format_date($node->created, 'short'); // better to be specific then just "short"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment