The description for the value returned from form_type_token_value() is wrong

Created on 11 December 2018, about 6 years ago
Updated 12 May 2023, over 1 year ago

The description given for value returned from form_type_token_value() is the following one.

The data that will appear in the $element_state['values'] collection for this element. Return nothing to use the default.

The function doesn't receive any $element_state parameter; it receives a $element parameter, which is the form array for that element.

I would change the phrase to the following one.

The data that will appear in the $form_state['values'] collection for this element, or nothing to use the default value.

🐛 Bug report
Status

Fixed

Version

7.0 ⚰️

Component
Documentation 

Last updated 8 days ago

No maintainer
Created by

🇮🇹Italy apaderno Brescia, 🇮🇹

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

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.

Production build 0.71.5 2024