
| Current Path : /var/www/html/ift/vendor/chi-teck/drupal-code-generator/templates/d7/hook/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/vendor/chi-teck/drupal-code-generator/templates/d7/hook/validate.twig |
/**
* Implements hook_validate().
*/
function {{ machine_name }}_validate($node, $form, &$form_state) {
if (isset($node->end) && isset($node->start)) {
if ($node->start > $node->end) {
form_set_error('time', t('An event may not end before it starts.'));
}
}
}