You are here

function ldap_authentication_profile_update_form in Lightweight Directory Access Protocol (LDAP) 7.2

Form constructor for updating the profile.

See also

ldap_authentication_profile_update_form_validate()

ldap_authentication_profile_update_form_submit()

1 string reference to 'ldap_authentication_profile_update_form'
ldap_authentication_menu in ldap_authentication/ldap_authentication.module
Implements hook_menu().

File

ldap_authentication/ldap_authentication.pages.inc, line 14
User-facing page callbacks for the LDAP Authentication module.

Code

function ldap_authentication_profile_update_form($form, &$form_state) {
  $form['mail'] = [
    '#type' => 'textfield',
    '#required' => TRUE,
    '#title' => t('Email Address'),
  ];
  $form['submit'] = [
    '#type' => 'submit',
    '#value' => t('Update Profile'),
  ];
  return $form;
}