function sms_admin_gateway_form in SMS Framework 5
Same name and namespace in other branches
- 6.2 sms.admin.inc \sms_admin_gateway_form()
- 6 sms.admin.inc \sms_admin_gateway_form()
- 7 sms.admin.inc \sms_admin_gateway_form()
Gateway configuration form. Loads form from gateway.
1 string reference to 'sms_admin_gateway_form'
- sms_menu in ./
sms.module - Implementation of hook_menu().
File
- ./
sms.module, line 177 - The core of the SMS Framework. Provides gateway managment and API for sending and receiving SMS messages.
Code
function sms_admin_gateway_form($gateway_id = NULL) {
$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;
}
}