You are here

function views_html_head_alter in Views Lazy Load 8

Same name and namespace in other branches
  1. 7 views_lazy_load.module \views_html_head_alter()

Implements hook_html_head_alter().

File

./views_lazy_load.module, line 37
Module file for views_lazy_load.module.

Code

function views_html_head_alter() {
  if (variable_get('views_lazy_load_disable_alerts', FALSE)) {
    drupal_add_js(drupal_get_path('module', 'views_lazy_load') . '/js/disable-alert.js', array(
      'every_page' => TRUE,
    ));
  }
}