You are here

function shib_auth_form_alter in Shibboleth Authentication 5.2

Same name and namespace in other branches
  1. 8 shib_auth.module \shib_auth_form_alter()
  2. 5.3 shib_auth.module \shib_auth_form_alter()
  3. 6.4 shib_auth.module \shib_auth_form_alter()
  4. 6 shib_auth.module \shib_auth_form_alter()
  5. 6.2 shib_auth.module \shib_auth_form_alter()
  6. 6.3 shib_auth.module \shib_auth_form_alter()
  7. 7.4 shib_auth.module \shib_auth_form_alter()

Alters forms for the shibboleth authentication module.

Parameters

$form_id The form ID.:

$form The form.:

File

./shib_auth.module, line 271

Code

function shib_auth_form_alter($form_id, &$form) {
  if ($form_id == 'user_login') {
    $form['shibboleth'] = array(
      '#type' => 'hidden',
      '#weight' => -1,
      '#prefix' => generate_login_text(),
      '#suffix' => '',
    );
  }
}