function hotjar_get_settings in Hotjar 6
Same name and namespace in other branches
- 8 hotjar.module \hotjar_get_settings()
- 7 hotjar.module \hotjar_get_settings()
Get Hotjar settings.
4 calls to hotjar_get_settings()
- hotjar_add_js in ./
hotjar.module - Insert JavaScript to the appropriate scope/region of the page.
- hotjar_admin_settings_form in ./
hotjar.admin.inc - Hotjar settings form.
- _hotjar_check_roles in ./
hotjar.module - Check user role.
- _hotjar_should_be_added in ./
hotjar.module - Check Hotjar code should be added.
File
- ./
hotjar.module, line 67 - Drupal Module: Hotjar.
Code
function hotjar_get_settings() {
$settings = variable_get('hotjar_settings', array());
$settings += array(
'hotjar_account' => NULL,
'hotjar_visibility_pages' => 0,
'hotjar_pages' => HOTJAR_PAGES,
'hotjar_visibility_roles' => 0,
'hotjar_roles' => array(),
);
return $settings;
}