Closed (won't fix)
Project:
Documentation
Component:
API documentation files
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Oct 2012 at 10:24 UTC
Updated:
26 Mar 2025 at 09:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
xanoPatch for Drupal 8 that fixes the documentation. Should work for Drupal 7 as well.
Comment #3
berdirThe change isn't correct either. It *can* be an array, but only because theme() also accepts an array. But this is a special case that is very seldomly used. Of 190 uses of "'#theme' in core, I've found exactly two that use an array.
so if anything, it should only documented that it is also possible to specify an array, maybe with a reference to the theme() documentation.
Comment #4
jhodgdonThe FAPI reference is in the Documentation project repo
Comment #5
xanoComment #6
avpadernoComment #7
avpaderno@Berdir is correct: The value for
#themeis usually a string, but it could be an array too. It is not required to be an array.I am not sure that needs to be documented, as there are few cases where an array is really necessary. (If an array were always expected, Drupal core would require an array by default.)
Comment #8
avpadernoI checked the 8.x-1.x branch for this project repository, but it is empty. I take the documentation files are not on this project anymore.
Comment #9
quietone commentedThis is for the Drupal 7 Form API reference. Since Drupal 7 is past end-of-life this is now a "won't fix".
Work on documentation for form elements for supported versions of Drupal is at #2486967: [meta] Move/Create Form Element Documentation and #3313535: [Meta] Improve documentation for Render and Form Elements.
Comment #10
avpaderno