You are here

function cas_login_form in CAS 6.2

Same name and namespace in other branches
  1. 5.4 cas.module \cas_login_form()
  2. 5.3 cas.module \cas_login_form()
3 string references to 'cas_login_form'
cas_admin_settings in ./cas.module
Provides settings pages.
cas_block in ./cas.module
Provides login blog that only shows up when the user logs in.
cas_form_alter in ./cas.module
implementation of hook_form_alter Overrides specific from settings based on user policy.

File

./cas.module, line 906

Code

function cas_login_form($form_state) {
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Log in via CAS'),
  );
  if (module_exists('persistent_login') && variable_get('cas_allow_rememberme', 0)) {
    $form['remember'] = array(
      '#type' => 'checkbox',
      '#title' => t('Remember me'),
      '#default_value' => 0,
    );
  }
  return $form;
}