You are here

function browscap_init in Browscap 6

Same name and namespace in other branches
  1. 7 browscap.module \browscap_init()

Implements hook_init().

File

./browscap.module, line 97
Replacement for PHP's get_browser() function.

Code

function browscap_init() {

  // Record the user agent and set a flag to denote that the user agent was
  // recorded during init() so it does not need to be recorded during exit()
  _record_user_agent(TRUE, user_access('bypass browscap monitoring'));
}