function reg_with_pic_form_user_admin_settings_alter in Register with Picture 7
Implements hook_form_alter().
File
- ./
reg_with_pic.module, line 10 - Reg with pic module file.
Code
function reg_with_pic_form_user_admin_settings_alter(&$form, &$form_state, $form_id) {
$form['personalization']['pictures']['reg_with_pic_enabled'] = array(
'#type' => 'checkbox',
'#title' => t('Enable pictures on registration'),
'#default_value' => variable_get('reg_with_pic_enabled', 0),
'#weight' => -10,
);
$form['personalization']['pictures']['reg_with_pic_weight'] = array(
'#type' => 'textfield',
'#title' => t('Registraton Picture Field Weight'),
'#description' => t('Set to an integer, positive or negative, to control the weight of the picture field on the registration form.'),
'#size' => 5,
'#default_value' => variable_get('reg_with_pic_weight', 0),
'#weight' => -10,
);
$form['#submit'][] = 'reg_with_pic_settings_submit';
return $form;
}