You are here

function _location_user_settings_form_alter in Location 5.3

Alter the user_admin_settings form.

1 call to _location_user_settings_form_alter()
location_user_form_alter in ./location_user.module
Implementation of hook_form_alter().

File

./location_user.module, line 20
Associate locations with users.

Code

function _location_user_settings_form_alter($form_id, &$form) {
  $settings = variable_get('location_settings_user', array());
  $form['location_settings_user'] = location_settings($settings);
  $form['location_settings_user']['#title'] = t('User locations');
  $form['location_settings_user']['form']['register'] = array(
    '#type' => 'checkbox',
    '#title' => t('Collect during registration'),
    '#default_value' => isset($settings['form']['register']) ? $settings['form']['register'] : FALSE,
    '#weight' => -5,
  );
}