skip to Main Content

Drupal – Add Validation example

Rule name: checkYear
Column: value
PHP code:

 if ($this->value <= intval(Date('Y'))) {

Custom error message: The accepted value for year must be ….

see example:
at 47:30

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top