You are here

function _modernizr_js_settings in Modernizr 7.3

Default drupal_add_js settings. Used in multiple places.

Return value

array An array of settings for drupal_add_js.

2 calls to _modernizr_js_settings()
modernizr_libraries_info in ./modernizr.module
Implements hook_libraries_info().
modernizr_page_build in ./modernizr.module
Implements hook_page_build().

File

./modernizr.module, line 39
Main module file for Modernizr

Code

function _modernizr_js_settings() {
  return array(
    'type' => variable_get('modernizr_type', MODERNIZR_TYPE_DEFAULT) != 'inline' ? 'file' : 'inline',
    'scope' => variable_get('modernizr_scope', MODERNIZR_SCOPE_DEFAULT),
    'group' => MODERNIZR_SCRIPT_GROUP,
    'weight' => MODERNIZR_SCRIPT_WEIGHT,
    'every_page' => TRUE,
    'preprocess' => 0,
    'defer' => variable_get('modernizr_type', MODERNIZR_TYPE_DEFAULT) == 'defer' ? TRUE : FALSE,
  );
}