You are here

function acquia_lift_js_alter in Acquia Lift Connector 7

Same name and namespace in other branches
  1. 7.2 acquia_lift.module \acquia_lift_js_alter()

Implements hook_js_alter().

See also

navbar_js_alter().

File

./acquia_lift.module, line 2257
acquia_lift.module Provides Acquia Lift-specific personalization functionality.

Code

function acquia_lift_js_alter(&$javascript) {

  // Only load the tableheader offset script if the core tableheader script
  // is loaded and acquia lift is loaded.
  if (isset($javascript['misc/tableheader.js']) && _acquia_lift_using_unified_navbar() && isset($javascript[drupal_get_path('module', 'acquia_lift') . '/js/acquia_lift.navbar.js'])) {
    drupal_add_js(array(
      'tableHeaderOffset' => 'Drupal.navbar.height',
    ), array(
      'type' => 'setting',
    ));
  }
}