public function LdapUserConfAdmin::drupalFormSubmit in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_user/LdapUserConfAdmin.class.php \LdapUserConfAdmin::drupalFormSubmit()
Method to respond to successfully validated form submit.
Parameters
array $values: as $form_state['values'] from drupal form api.
array $storage: as $form_state['storage'] from drupal form api.
Return value
by reference to $form array
File
- ldap_user/
LdapUserConfAdmin.class.php, line 672
Class
Code
public function drupalFormSubmit($values, $storage) {
$this
->populateFromDrupalForm($values, $storage);
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;
}
}