function twilio_admin_test_form in Twilio 7
Administrative testing form for SMS.
1 string reference to 'twilio_admin_test_form'
- twilio_menu in ./
twilio.module - Implements hook_menu().
File
- ./
twilio.admin.inc, line 101 - Administrative forms section
Code
function twilio_admin_test_form($form, &$form_state) {
$form['country'] = array(
'#type' => 'select',
'#title' => t('Country code'),
'#options' => twilio_country_codes(),
);
$form['number'] = array(
'#type' => 'textfield',
'#required' => TRUE,
'#title' => t('Phone Number'),
'#description' => t('The number to send your message to. Include all numbers except the country code'),
);
$form['message'] = array(
'#type' => 'textarea',
'#required' => TRUE,
'#title' => t('Message'),
'#description' => t("The body of your SMS message."),
);
$form['media'] = array(
'#type' => 'textfield',
'#required' => FALSE,
'#title' => t('Media URL (MMS)'),
'#description' => t('A publicly accessible URL to a media file such as a png, jpg, gif, etc. (e.g. http://something.com/photo.jpg)'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Send SMS'),
);
return $form;
}