function browscap_init in Browscap 7
Same name and namespace in other branches
- 6 browscap.module \browscap_init()
Implements hook_init().
File
- ./
browscap.module, line 102 - 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'));
}