You are here

public function hostingService::validate in Hostmaster (Aegir) 6

2 calls to hostingService::validate()
hostingService_example_basic::validate in modules/hosting/example/hosting_example.service.inc
Validate a form submission.
hostingService_http_ssl::validate in modules/hosting/web_server/ssl/hosting_ssl.service.inc
2 methods override hostingService::validate()
hostingService_example_basic::validate in modules/hosting/example/hosting_example.service.inc
Validate a form submission.
hostingService_http_ssl::validate in modules/hosting/web_server/ssl/hosting_ssl.service.inc

File

modules/hosting/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."));
    }
  }
}