You are here

function sms_admin_gateway_form_validate in SMS Framework 6.2

Same name and namespace in other branches
  1. 5 sms.module \sms_admin_gateway_form_validate()
  2. 6 sms.admin.inc \sms_admin_gateway_form_validate()
  3. 7 sms.admin.inc \sms_admin_gateway_form_validate()

Form validation handler for sms_admin_gateway_form().

See also

sms_admin_gateway_form()

sms_admin_gateway_form_submit()

File

./sms.admin.inc, line 108
The admin sms functions.

Code

function sms_admin_gateway_form_validate($form, &$form_state) {

  // Pass validation to gateway
  $function = $form_state['values']['gateway']['configure form'] . '_validate';
  if (function_exists($function)) {
    $function($form, $form_state);
  }
}