You are here

public function hostingService::validate in Hosting 7.3

Same name and namespace in other branches
  1. 6.2 server/hosting_server.service.inc \hostingService::validate()
  2. 7.4 server/hosting_server.service.inc \hostingService::validate()
2 calls to hostingService::validate()
hostingService_example_basic::validate in example/example_service/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/example_service/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 193
Define the base Hosting service class.

Class

hostingService
@file Define the base Hosting service class.

Code

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