You are here

public function LdapServerAdmin::drupalFormWarnings in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_servers/LdapServerAdmin.class.php \LdapServerAdmin::drupalFormWarnings()
  2. 7.2 ldap_servers/LdapServerAdmin.class.php \LdapServerAdmin::drupalFormWarnings()

File

ldap_servers/LdapServerAdmin.class.php, line 395

Class

LdapServerAdmin

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;
}