You are here

function context_metadata_preprocess_page in Context Metadata 7

Implements hook_preprocess_page().

File

./context_metadata.module, line 47

Code

function context_metadata_preprocess_page(&$vars) {
  $metadata = drupal_static('metadata_array');
  if (isset($metadata['metadata_h1'])) {
    drupal_set_title(token_replace($metadata['metadata_h1']));
    unset($vars['title']);
  }
}