You are here

function zopim_set_settings in Zopim Live Chat 6.2

3 string references to 'zopim_set_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().

File

./zopim.module, line 353

Code

function zopim_set_settings($form, &$form_state) {
  foreach ($form_state['values'] as $key => $value) {
    if (!is_array($value)) {
      unset($form_state['values'][$key]);
    }
  }
  $settings = zopim_get_settings();
  $form_state['values'] = array_replace_recursive(array(
    'zopim' => $settings,
  ), array(
    'zopim' => $form_state['values'],
  ));
}