function hostingService_Certificate_SelfSigned::validate in Aegir HTTPS 7.3
Validate a form submission.
File
- submodules/
self_signed/ hosting_self_signed.service.inc, line 83 - Self-signed service implementation of the Certificate service type for the hosting front end.
Class
- hostingService_Certificate_SelfSigned
- An implementation of the certificate service type, registered with hook_hosting_service.
Code
function validate(&$node, &$form, &$form_state) {
parent::validate($node, $form, $form_state);
if (strlen($this->self_signed_field) > 30) {
form_set_error('self_signed_field', t("The certificate string must not be longer than 30 characters"));
}
}