public function LdapServerAdmin::drupalFormWarnings in Lightweight Directory Access Protocol (LDAP) 8.2
Same name and namespace in other branches
- 7.2 ldap_servers/LdapServerAdmin.class.php \LdapServerAdmin::drupalFormWarnings()
- 7 ldap_servers/LdapServerAdmin.class.php \LdapServerAdmin::drupalFormWarnings()
File
- ldap_servers/
LdapServerAdmin.class.php, line 386
Class
Code
public function drupalFormWarnings($op, $values, $has_errors = NULL) {
$errors = array();
if ($op == 'delete') {
if (!$this->sid) {
$errors['server_id_missing'] = t('Server id missing from delete form.');
}
}
else {
$this
->populateFromDrupalForm($op, $values);
$warnings = $this
->warnings($op, $has_errors);
}
return $warnings;
}