Only the alter part of locale_js_alter(), not the parsing part.

Paramètres

array $javascript: An array with all JavaScript code. Defaults to the default JavaScript array for the given scope.

string $dir: String pointing to the public locale_js_directory.

1 call to advagg_locale_js_add_translations()
_advagg_locale_js_alter dans ./advagg.module
Implements hook_js_alter().

Fichier

./advagg.module, line 1494

Code

function advagg_locale_js_add_translations(array &$javascript, $dir) {
    // Add the translation JavaScript file to the page.
    if (!empty($GLOBALS['language']->javascript)) {
        // Add the translation JavaScript file to the page.
        $file = $dir . '/' . $GLOBALS['language']->language . '_' . $GLOBALS['language']->javascript . '.js';
        $javascript[$file] = drupal_js_defaults($file);
    }
}