function sms_user_send_sms_action_form in SMS Framework 6.2
Same name and namespace in other branches
- 7 modules/sms_user/sms_user.actions.inc \sms_user_send_sms_action_form()
Form for 'send sms' action.
Parameters
array $context:
Return value
$form
File
- modules/
sms_user/ sms_user.actions.inc, line 31 - SMS User Action Implementation.
Code
function sms_user_send_sms_action_form($context) {
$limit = variable_get('sms_user_max_chars', SMS_USER_MAX_CHARS);
drupal_add_js(drupal_get_path('module', 'sms_user') . '/sms_user.js');
$form['sms_text'] = array(
'#type' => 'textarea',
'#title' => 'SMS Text',
'#required' => TRUE,
);
$form['sms_limit'] = array(
'#type' => 'markup',
'#prefix' => '<div id="keystrokes" class="description" limit="' . $limit . '"><span></span>',
'#value' => t('@max chars max', array(
'@max' => $limit,
)),
'#suffix' => '</div>',
);
return $form;
}