You are here

function brb_init in Browser Bouncer (brb) 7

Implementation of hook_init().

Add an empty variable in Drupal.settings to force the load of jquery.js and drupal.js, the variable will be use later to store this module settings.

Note: This wouldn't be needed if drupal_add_js() was supporting the browser option. See http://drupal.org/node/865536 for more information about this issue.

File

./brb.module, line 152
Display a message to let the user knows his/her browser is not supported. This message also offer to the user different browsers that can be used instead.

Code

function brb_init() {
  drupal_add_js(array(
    'brb' => NULL,
  ), 'setting');
}