You are here

function prlp_get_hidden_account_fields in Password Reset Landing Page (PRLP) 6

Same name and namespace in other branches
  1. 7 prlp.module \prlp_get_hidden_account_fields()

Returns an array of fields on $form['account'] that should be hidden by PRLP.

1 call to prlp_get_hidden_account_fields()
prlp_form_user_pass_reset_alter in ./prlp.module
Alters the user password reset landing page.

File

./prlp.module, line 211
Password Reset Landing Page module.

Code

function prlp_get_hidden_account_fields() {
  static $fields = array();
  if (empty($fields)) {

    // Break the variable value by newline separator.
    $fields = explode("\n", variable_get('prlp_hidden_account_fields', PRLP_HIDDEN_ACCOUNT_FIELDS_DEFAULT));
  }
  return $fields;
}