You are here

function modernizr_init in Modernizr 7

Same name and namespace in other branches
  1. 6.2 modernizr.module \modernizr_init()
  2. 6 modernizr.module \modernizr_init()
  3. 7.2 modernizr.module \modernizr_init()

Implements hook_init().

File

./modernizr.module, line 6

Code

function modernizr_init() {
  drupal_add_js(array(
    'modernizrPath' => drupal_get_path('module', 'modernizr') . '/modernizr.min.js',
  ), array(
    'type' => 'setting',
    'scope' => 'footer',
  ));
  drupal_add_js(drupal_get_path('module', 'modernizr') . '/modernizr_loader.js');
}