Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm creating a custom question type. When I'm handling validation from the creation form I only have access to $form. Could we have the optional form_state parameter incorporated and passed to the QuizQuestion classes validateNode method?
http://cgit.drupalcode.org/quiz/tree/question_types/quiz_question/quiz_q...
function quiz_question_validate($node, &$form) {
_quiz_question_get_instance($node)->validateNode($form);
}
changed to something like
function quiz_question_validate($node, &$form, &$form_state) {
_quiz_question_get_instance($node)->validateNode($form, $form_state);
}
Comments