You are here

function sms_admin_gateway_form_validate in SMS Framework 5

Same name and namespace in other branches
  1. 6.2 sms.admin.inc \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()

Validation for gateway configuration. If the gateway defines a validation function it uses that.

File

./sms.module, line 197
The core of the SMS Framework. Provides gateway managment and API for sending and receiving SMS messages.

Code

function sms_admin_gateway_form_validate($form_id, $form_values) {

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