function sms_admin_gateway_form_validate in SMS Framework 6
Same name and namespace in other branches
- 5 sms.module \sms_admin_gateway_form_validate()
- 6.2 sms.admin.inc \sms_admin_gateway_form_validate()
- 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.admin.inc, line 84 - SMS Framework core module: Admin settings form 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);
}
}