public function LdapServerAdmin::drupalFormWarnings in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_servers/LdapServerAdmin.class.php \LdapServerAdmin::drupalFormWarnings()
- 7 ldap_servers/LdapServerAdmin.class.php \LdapServerAdmin::drupalFormWarnings()
File
- ldap_servers/
LdapServerAdmin.class.php, line 420
Class
Code
public function drupalFormWarnings($op, $values, $has_errors = NULL) {
$errors = [];
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;
}