public function LdapQueryAdmin::drupalFormSubmit in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_query/LdapQueryAdmin.class.php \LdapQueryAdmin::drupalFormSubmit()
- 7 ldap_query/LdapQueryAdmin.class.php \LdapQueryAdmin::drupalFormSubmit()
File
- ldap_query/
LdapQueryAdmin.class.php, line 295
Class
Code
public function drupalFormSubmit($op, $values) {
$this
->populateFromDrupalForm($op, $values);
if ($op == 'delete') {
$this
->delete($this);
}
else {
try {
$save_result = $this
->save($op);
} catch (Exception $e) {
$this
->setError('Save Error', t('Failed to save object. Your form data was not saved.'));
}
}
}