You are here

function exclude_node_title in Exclude Node Title 7

Determine whether a user has privilege and whether to exclude the node title.

Parameters

object $node: The node object.

string $view_mode: The view mode, e.g. 'full' or 'teaser'.

Return value

bool Returns TRUE if title should be hidden, otherwise returns FALSE.

1 string reference to 'exclude_node_title'
exclude_node_title_admin_settings in ./exclude_node_title.admin.inc
Admin configuration form.

File

./exclude_node_title.module, line 58
Primarily Drupal hooks and global API functions to exclude node titles.

Code

function exclude_node_title($node, $view_mode) {
  return user_access('use exclude node title') && _exclude_node_title($node, $view_mode);
}