Hide page title on node page


Rakesh Kumar

/**
 * Implements hook_preprocess_page().
 */
function MODULE_NAME_preprocess_page(&$vars) {
  if (arg(0) == 'node' && is_numeric(arg(1)) && !arg(2)) {
    if ($vars['node']->type == 'content_type_name') {
      $vars['title'] = '';
    }
  }
}

http://dropbucket.org/node/536

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