Get the default loadcss options for the js used.

Return value

array Key => value options array for drupal_add_js().

3 calls to advagg_mod_loadcss_js_defaults()
advagg_mod_add_loadcss_js_lib dans advagg_mod/advagg_mod.module
Adds the loadcss js library if needed.
advagg_mod_libraries_info dans advagg_mod/advagg_mod.module
Implements hook_libraries_info().
advagg_mod_libraries_preload_callback dans advagg_mod/advagg_mod.module
Callback right before loadcss lib is loaded; set defaults.

Fichier

advagg_mod/advagg_mod.module, line 1543

Code

function advagg_mod_loadcss_js_defaults() {
    list(, , , , , , , , , , $css_defer) = advagg_mod_get_lists();
    $default_options = array(
        'scope' => $css_defer >= 7 ? 'footer' : 'header',
        'scope_lock' => TRUE,
        'every_page' => TRUE,
        'group' => $css_defer == 1 ? JS_LIBRARY - 1 : JS_LIBRARY,
        'weight' => $css_defer == 1 ? -50000 : 0,
        'movable' => $css_defer == 1 ? FALSE : TRUE,
    );
    return $default_options;
}