Pass form_state in validateNode

Created on 14 April 2017, over 7 years ago
Updated 26 July 2024, 5 months ago

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);
}
✨ Feature request
Status

Closed: outdated

Version

5.0

Component

Code - Quiz core

Created by

πŸ‡ΊπŸ‡ΈUnited States mcroyle

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    With D7 approaching EOL soon I've started the process of triaging the D7queue here. Since there hasn't been any movement on this going to close out.

Production build 0.71.5 2024