override-submitted-by-text-for-drupal-nodes


Rakesh Kumar

1: in your template.php put [theme_name]_node_subbmitted()

function [your_theme_name]_node_submitted($node) {
  return t('!username on @datetime',
    array(
      '!username' => theme('username', $node),
      '@datetime' => format_date($node->created),
    ));
}

2 or in your module

function [your_module_name]_node_submitted($node) {
  return t(' by !username on @datetime',
    array(
      '!username' => theme('username', $node),
      '@datetime' => format_date($node->created),
    ));
}

in template is easier way of course

View original post

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s