public function LdapAuthorizationConsumerConfAdmin::drupalFormSubmit in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php \LdapAuthorizationConsumerConfAdmin::drupalFormSubmit()
- 7 ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php \LdapAuthorizationConsumerConfAdmin::drupalFormSubmit()
File
- ldap_authorization/
LdapAuthorizationConsumerConfAdmin.class.php, line 391
Class
- LdapAuthorizationConsumerConfAdmin
- LDAP Authorization Consumer Configration Admin Class.
Code
public function drupalFormSubmit($op, $values) {
$this
->populateFromDrupalForm($op, $values);
if ($op == 'delete') {
$this
->delete();
}
else {
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;
}
}
}