You are here

function ulogin_form_user_profile_form_alter in uLogin (advanced version) 6

Same name and namespace in other branches
  1. 7 ulogin.module \ulogin_form_user_profile_form_alter()

Implements hook_form_FORM_ID_alter().

File

./ulogin.module, line 174

Code

function ulogin_form_user_profile_form_alter(&$form, &$form_state) {
  if (!empty($form['_account']['#value']->ulogin)) {
    if (variable_get('ulogin_disable_username_change', 1)) {
      $form['account']['name']['#access'] = FALSE;
    }
    if (variable_get('ulogin_remove_password_fields', 1)) {
      unset($form['account']['pass']);
    }
  }
}