function zopim_admin_settings_form_validate in Zopim Live Chat 7
Same name and namespace in other branches
- 6.2 includes/zopim-account.admin.inc \zopim_admin_settings_form_validate()
- 6.2 includes/zopim-customize.admin.inc \zopim_admin_settings_form_validate()
- 6.2 includes/zopim-visibility.admin.inc \zopim_admin_settings_form_validate()
- 6 zopim.admin.inc \zopim_admin_settings_form_validate()
Implementation of hook_admin_settings_form_validate().
Parameters
array $form: structured associative drupal form array.
array $form_state:
File
- ./
zopim.admin.inc, line 112 - Administrative page callbacks for the Zopim module.
Code
function zopim_admin_settings_form_validate($form, &$form_state) {
if (empty($form_state['values']['zopim_account'])) {
form_set_error('zopim_account', t('A valid Zopim account number is needed.'));
}
}