You are here

function noscript_tag_process_html in Noscript Tag 7

Implements hook_process_html().

File

./noscript_tag.module, line 58
Adds functionality to display noscript tag when javascript is disabled.

Code

function noscript_tag_process_html(&$variables) {
  if (user_access("view noscript tag")) {
    $noscript_tag_value = noscript_tag_value();
    $noscript_tag_markup = '<noscript>' . check_markup($noscript_tag_value['value'], $noscript_tag_value['format']) . '</noscript>';
    $variables['page_top'] = $noscript_tag_markup . $variables['page_top'];
  }
}