Цитата из книги: "When '#required' is set to TRUE , Drupal will throw an error if the form is submitted
without a value in that element. Required fields are also marked with an asterisk in
their labels. Again, this happens transparently without any extra code. Drupal will
even highlight the field when an error applies to it! This on-the-fly error handling and
form validation is one of the reasons Form API is such a boon to developers.". Написано что всё происходит програчно, но нет же никакой прозрачности. Ты пишешь какую-то хуйню а всё остальное делается где-то внутри системы.