function sms_admin_gateway_form in SMS Framework 6
Same name and namespace in other branches
- 5 sms.module \sms_admin_gateway_form()
- 6.2 sms.admin.inc \sms_admin_gateway_form()
- 7 sms.admin.inc \sms_admin_gateway_form()
1 string reference to 'sms_admin_gateway_form'
- sms_menu in ./
sms.module - Implementation of hook_menu().
File
- ./
sms.admin.inc, line 62 - SMS Framework core module: Admin settings form functions
Code
function sms_admin_gateway_form(&$form_state, $gateway_id) {
$gateway = sms_gateways('gateway', $gateway_id);
if ($gateway && function_exists($gateway['configure form'])) {
drupal_set_title(t('@gateway configuration', array(
'@gateway' => $gateway['name'],
)));
$form = $gateway['configure form']($gateway['configuration']);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
$form['gateway'] = array(
'#type' => 'value',
'#value' => $gateway,
);
return $form;
}
drupal_not_found();
exit;
}