You are here

function sms_user_register in SMS Framework 6.2

Same name and namespace in other branches
  1. 5 modules/sms_user/sms_user.module \sms_user_register()
  2. 6 modules/sms_user/sms_user.module \sms_user_register()

Form elements to show on user registration page.

See also

sms_user_user()

1 call to sms_user_register()
sms_user_user in modules/sms_user/sms_user.module
Implmentation of hook_user().

File

modules/sms_user/sms_user.module, line 511
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'] += sms_send_form($required);
    return $form;
  }
}