You are here

function ds_extras_process_page_title in Display Suite 7

Same name and namespace in other branches
  1. 7.2 modules/ds_extras/ds_extras.module \ds_extras_process_page_title()

Page title options for a full entity page view.

1 string reference to 'ds_extras_process_page_title'
_ds_extras_theme_registry_alter in modules/ds_extras/ds_extras.registry.inc
Implements hook_theme_registry_alter().

File

modules/ds_extras/ds_extras.module, line 541
Display Suite extras main functions.

Code

function ds_extras_process_page_title(&$variables) {
  $page_title = drupal_static('ds_page_title');
  if (!empty($page_title)) {
    $variables['title'] = $page_title['title'];
    if (!empty($page_title['head_title'])) {
      drupal_set_title($page_title['head_title']);
    }
  }
}