function zopim_get_settings in Zopim Live Chat 6.2
Utility function to return all settings in one call.
Return value
array An array of settings.
12 calls to zopim_get_settings()
- zopim_admin_settings_form in includes/
zopim-account.admin.inc - Implementation of hook_admin_settings().
- zopim_admin_settings_form in includes/
zopim-customize.admin.inc - Implementation of hook_admin_settings() for configuring the module
- zopim_admin_settings_form in includes/
zopim-visibility.admin.inc - Implementation of hook_admin_settings().
- zopim_admin_settings_form_validate in includes/
zopim-account.admin.inc - zopim_footer in ./
zopim.module
File
- ./
zopim.module, line 297
Code
function zopim_get_settings() {
$defaults = array(
'general' => array(
'username' => FALSE,
'password' => FALSE,
'salt' => FALSE,
'agreement' => 0,
'use_ssl' => 1,
'account' => 0,
'account_key' => FALSE,
'customization' => array(
'color' => FALSE,
'widget' => FALSE,
),
),
'widget' => array(
'language' => '--',
'position' => 'br',
'use_user_info' => 1,
'hide_when_offline' => 0,
),
'theming' => array(
'color' => '#FFFFFF',
'theme' => 'alphacube',
),
'help_bubble' => array(
'display' => 'default',
'title' => '',
'message' => '',
),
'greeting_messages' => array(
'enabled' => 0,
'chatbar' => array(
'online' => '',
'away' => '',
'offline' => '',
),
'panel' => array(
'online' => '',
'away' => '',
'offline' => '',
),
),
'visibility' => array(
'enabled' => 1,
'role' => array(),
'page' => array(
'mode' => 0,
'pages' => '',
),
),
);
return array_replace_recursive($defaults, variable_get('zopim', $defaults));
}