You are here

function _seckit_js_css_noscript in Security Kit 6

Same name and namespace in other branches
  1. 7 seckit.module \_seckit_js_css_noscript()

Enables JavaScript + CSS + Noscript Clickjacking defense.

Closes inline JavaScript and allows loading of any inline HTML elements. After, it starts new inline JavaScript to avoid breaking syntax. We need it, because Drupal API doesn't allow to init HTML elements in desired sequence.

1 call to _seckit_js_css_noscript()
seckit_init in ./seckit.module
Implements hook_init().

File

./seckit.module, line 462
Allows administrators to improve security of the website.

Code

function _seckit_js_css_noscript() {
  drupal_add_js(_seckit_get_js_css_noscript_code(), 'inline', 'header');
}