You are here

function ajax_loader_js_alter in Ajax loader 7

Implements hook_js_alter().

File

./ajax_loader.module, line 101
Contains general functionality and hooks.

Code

function ajax_loader_js_alter(&$javascript) {

  // Only add throbber js file if ajax.js is included.
  $path = drupal_get_path('module', 'ajax_loader') . "/js/ajax-loader.js";
  if (!isset($javascript['misc/ajax.js']) && isset($javascript[$path])) {
    unset($javascript[$path]);
  }
}