function sms_user_admin_settings in SMS Framework 5
Same name and namespace in other branches
- 6.2 modules/sms_user/sms_user.admin.inc \sms_user_admin_settings()
- 6 modules/sms_user/sms_user.module \sms_user_admin_settings()
- 7 modules/sms_user/sms_user.admin.inc \sms_user_admin_settings()
1 string reference to 'sms_user_admin_settings'
- sms_user_menu in modules/
sms_user/ sms_user.module - Implementation of hook_menu().
File
- modules/
sms_user/ sms_user.module, line 411 - Provides integration between the SMS Framework and Drupal users.
Code
function sms_user_admin_settings() {
$form['sms_user_registration_form'] = array(
'#type' => 'radios',
'#title' => t('Show mobile fields during user registration'),
'#description' => t('Specify if the site should collect mobile information during registration.'),
'#options' => array(
t('Disabled'),
t('Optional'),
t('Required'),
),
'#default_value' => variable_get('sms_user_registration_form', 0),
);
$form['sms_user_confirmation_message'] = array(
'#type' => 'textfield',
'#title' => t('Confirmation message format'),
'#default_value' => variable_get('sms_user_confirmation_message', '[site-name] confirmation code: [confirm-code]'),
'#description' => t('Specify the format for confirmation messages. Keep this as short as possible.'),
'#size' => 40,
'#maxlength' => 255,
);
$form['tokens'] = array(
'#type' => 'fieldset',
'#title' => t('Available replacement patterns'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['tokens']['content']['#value'] = theme('token_help', 'sms_user');
$form['sms_user_sleep'] = array(
'#type' => 'checkbox',
'#title' => t('Enable sleep hours'),
'#description' => t('If checked, users will be able to specifiy hours during which they will not receive messages from the site.'),
'#default_value' => variable_get('sms_user_sleep', 1),
);
return system_settings_form($form);
}