You are here

function page_title_node_load in Page Title 7

Same name and namespace in other branches
  1. 8.2 page_title.module \page_title_node_load()
  2. 7.2 page_title.module \page_title_node_load()

Implement hook_node_load().

File

./page_title.module, line 240
Enhanced control over the page title (in the head tag).

Code

function page_title_node_load($nodes) {
  foreach ($nodes as $node) {
    if ($page_title = page_title_load_title($node->nid, 'node')) {
      $node->page_title = $page_title;
    }
  }
}