You are here

function prlp_get_hidden_fields in Password Reset Landing Page (PRLP) 7

Same name and namespace in other branches
  1. 6 prlp.module \prlp_get_hidden_fields()

Returns an array of fields under $form that should be hidden in PRLP form.

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

File

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

Code

function prlp_get_hidden_fields() {
  $fields =& drupal_static(__FUNCTION__);
  if (!isset($fields)) {

    // Break the variable value by newline separator.
    $fields = explode("\n", variable_get('prlp_hidden_fields', PRLP_HIDDEN_FIELDS_DEFAULT));
    foreach ($fields as &$field) {
      $field = trim($field);
    }
  }
  return $fields;
}