You are here

function zopim_get_account_details in Zopim Live Chat 6.2

3 calls to zopim_get_account_details()
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_validate in includes/zopim-account.admin.inc

File

./zopim.module, line 277

Code

function zopim_get_account_details($salt = '') {
  $settings = zopim_get_settings();
  $salt = empty($salt) ? $settings['general']['salt'] : $salt;
  if (empty($salt)) {
    return 'unconfigured';
  }
  else {
    $data = array(
      'salt' => $salt,
    );
    return zopim_post_request(ZOPIM_GETACCOUNTDETAILS_URL, $data);
  }
}