function sms_clickatell_admin_form in SMS Framework 5
Same name and namespace in other branches
- 6 modules/sms_clickatell/sms_clickatell.module \sms_clickatell_admin_form()
1 string reference to 'sms_clickatell_admin_form'
- sms_clickatell_gateway_info in modules/
sms_clickatell/ sms_clickatell.module - Implementation of hook_gateway_info().
File
- modules/
sms_clickatell/ sms_clickatell.module, line 22 - Adds support for sending SMS messages using the Clickatell gateway.
Code
function sms_clickatell_admin_form($configuration) {
$form['sms_clickatell_ssl'] = array(
'#type' => 'checkbox',
'#title' => t('Use SSL Encyption'),
'#description' => t('Drupal\'s built-in HTTP client only supports SSL on PHP 4.3 compiled with OpenSSL.'),
'#default_value' => $configuration['sms_clickatell_ssl'],
);
$form['sms_clickatell_api_id'] = array(
'#type' => 'textfield',
'#title' => t('API ID'),
'#description' => t('Clickatell issues this number upon addition of an HTTP sub-product to your account.'),
'#size' => 40,
'#maxlength' => 255,
'#default_value' => $configuration['sms_clickatell_api_id'],
);
$form['sms_clickatell_user'] = array(
'#type' => 'textfield',
'#title' => t('User'),
'#description' => t('The username of your Clickatell account.'),
'#size' => 40,
'#maxlength' => 255,
'#default_value' => $configuration['sms_clickatell_user'],
);
$form['sms_clickatell_password'] = array(
'#type' => 'textfield',
'#title' => t('Password'),
'#description' => t('The current password on your Clickatell account.'),
'#size' => 30,
'#maxlength' => 64,
'#default_value' => $configuration['sms_clickatell_password'],
);
return $form;
}