function bu_get_settings in Browser update 7
Same name and namespace in other branches
- 6 bu.module \bu_get_settings()
Returns default settings for browser update.
1 call to bu_get_settings()
- bu_page_build in ./
bu.module - Implements hook_page_build().
File
- ./
bu.module, line 92 - Browser update module.
Code
function bu_get_settings() {
return array(
'bu' => array(
'source' => variable_get('bu_settings_source', '//browser-update.org/update.js'),
'show_source' => variable_get('bu_settings_show_source', '//browser-update.org/update.show.min.js'),
'firefox' => variable_get('bu_browsers_firefox', '-4'),
'ie' => variable_get('bu_browsers_ie', '-6'),
'opera' => variable_get('bu_browsers_opera', '-4'),
'safari' => variable_get('bu_browsers_safari', '-2'),
'chrome' => variable_get('bu_browsers_chrome', '-4'),
'insecure' => variable_get('bu_settings_insecure', TRUE),
'unsupported' => variable_get('bu_settings_unsupported', FALSE),
'mobile' => variable_get('bu_settings_mobile', TRUE),
'position' => variable_get('bu_settings_position', 'top'),
'text' => variable_get('bu_settings_text', ''),
'reminder' => (int) variable_get('bu_settings_reminder', 3),
'reminder_closed' => (int) variable_get('bu_settings_reminder_closed', 3),
'debug' => (bool) variable_get('bu_settings_debug', 0),
'blank' => (bool) variable_get('bu_settings_blank', 0),
'hide_ignore' => (bool) variable_get('bu_settings_hide_ignore', FALSE),
),
);
}