You are here

function sms_user_send_sms_action_form in SMS Framework 7

Same name and namespace in other branches
  1. 6.2 modules/sms_user/sms_user.actions.inc \sms_user_send_sms_action_form()

Input form for the 'Send SMS to Users' action.

Parameters

array $context: The action context.

Return value

array The form array.

File

modules/sms_user/sms_user.actions.inc, line 42
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;
}