You are here

public function hostingService::validate in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 server/hosting_server.service.inc \hostingService::validate()
  2. 7.3 server/hosting_server.service.inc \hostingService::validate()
2 calls to hostingService::validate()
hostingService_example_basic::validate in example/hosting_example.service.inc
Validate a form submission.
hostingService_http_ssl::validate in web_server/ssl/hosting_ssl.service.inc
2 methods override hostingService::validate()
hostingService_example_basic::validate in example/hosting_example.service.inc
Validate a form submission.
hostingService_http_ssl::validate in web_server/ssl/hosting_ssl.service.inc

File

server/hosting_server.service.inc, line 133

Class

hostingService

Code

public function validate(&$node, &$form) {
  if ($this->has_port) {
    if ((int) $this->port <= 0) {
      form_set_error('port', t("The port you specify must be a number."));
    }
  }
}