You are here

function webform_share_preprocess_page_title in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_share/webform_share.module \webform_share_preprocess_page_title()

Implements hook_preprocess_HOOK() for page title templates.

File

modules/webform_share/webform_share.module, line 278
Allows webforms to be shared on other websites using an iframe.

Code

function webform_share_preprocess_page_title(&$variables) {
  if (!WebformShareHelper::isPage()) {
    return;
  }

  // Remove shortcut widget from page title.
  // @see shortcut_preprocess_page_title()
  if (isset($variables['title_suffix'])) {
    unset($variables['title_suffix']['add_or_remove_shortcut']);
  }
}