You are here

function sms_user_register in SMS Framework 5

Same name and namespace in other branches
  1. 6.2 modules/sms_user/sms_user.module \sms_user_register()
  2. 6 modules/sms_user/sms_user.module \sms_user_register()
1 call to sms_user_register()
sms_user_user in modules/sms_user/sms_user.module

File

modules/sms_user/sms_user.module, line 391
Provides integration between the SMS Framework and Drupal users.

Code

function sms_user_register() {
  if (variable_get('sms_user_registration_form', 0)) {
    $form['sms_user'] = array(
      '#type' => 'fieldset',
      '#title' => t('Mobile settings'),
      '#description' => t('You will receive a message to confirm your mobile information upon login.'),
      '#collapsible' => TRUE,
      '#tree' => TRUE,
    );
    $required = FALSE;
    if (variable_get('sms_user_registration_form', 0) == 2) {
      $required = TRUE;
    }
    $form['sms_user'][0] = sms_send_form($required);
    $form['sms_user'][0]['status'] = array(
      '#type' => 'value',
      '#value' => 1,
    );
    return $form;
  }
}