You are here

public function LdapAuthenticationConfAdmin::drupalFormSubmit in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_authentication/LdapAuthenticationConfAdmin.class.php \LdapAuthenticationConfAdmin::drupalFormSubmit()
  2. 7.2 ldap_authentication/LdapAuthenticationConfAdmin.class.php \LdapAuthenticationConfAdmin::drupalFormSubmit()

File

ldap_authentication/LdapAuthenticationConfAdmin.class.php, line 574

Class

LdapAuthenticationConfAdmin

Code

public function drupalFormSubmit($values) {
  $this
    ->populateFromDrupalForm($values);
  try {
    $save_result = $this
      ->save();
  } catch (Exception $e) {
    $this->errorName = 'Save Error';
    $this->errorMsg = t('Failed to save object.  Your form data was not saved.');
    $this->hasError = TRUE;
  }
}