Closed (fixed)
Project:
Documentation
Component:
API documentation files
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 May 2011 at 18:13 UTC
Updated:
4 Jan 2014 at 00:53 UTC
Jump to comment: Most recent
Comments
Comment #1
jhodgdonaspilicious tells me in IRC that this applies to D6/7/8 versions of the FAPI reference, probably (not sure about D6).
Comment #2
dave reidFAPI PAGE OF DOOOOM
Comment #3
jn2 commentedAs far as I can tell, neither of these elements existed in D6. They are both created in D7's system.module in system_element_info(). Neither one is in D6's system.module in system_elements(). (I'm deducing here the best I can. If there is evidence to the contrary, I'd love to have access to it.)
I'm in the process of researching the container element, and I'll probably limit this issue to that.
I've seen several references to the link element being part of the Render API and not the Form API. So it doesn't belong in the FAPI reference, unless we want to list it with the caveat that it really isn't part of FAPI. In ajax_example_misc.inc (http://api.drupal.org/api/examples/ajax_example--ajax_example_misc.inc/7...), it is used outside a form context. If I can't find more documentation about it, I'll open a separate issue for documenting 'link'. (If I do find documentation or open another issue, I'll post it here.)
Comment #4
jhodgdonAs far as render API vs. form API, there really isn't any difference as of d7/8. They're not treated any differently really. But as I've said before, I think that instead of pouring a lot more energy into documenting new elements in the horrendously awful FAPI reference doc, we'd be better off fixing
#100680: [meta] Make API module generate Form API documentation
Maybe once I get the "API changes as nodes" issue taken care of (which will hopefully be within a week), I can start on that, and some other docs infrastructure issues...
Comment #5
jn2 commentedHere's the issue for where to document the 'link element' and other future render elements: #1190658: Where to document the link element (and future Render elements)?.
Comment #6
jn2 commentedHere's what I have:
container
Description:
Returns HTML to wrap child elements in a container. Surrounds child elements with a <div> and adds attributes such as classes or an HTML id.
Properties:
#access, #after_build, #attributes, #children, #id, #parents, #post_render, #prefix, #pre_render, #process, #states, #suffix, #theme, #theme_wrappers, #tree, #type, #weight
Usage example:
_______________________
The #children property is not documented, and it's listed in API docs for theme_container (http://api.drupal.org/api/drupal/includes--form.inc/function/theme_conta...). I'll add a placeholder for now and have opened an issue for it #1201454: #children property is not documented in FAPI reference.
Comment #7
sunLooks good to go for me.
Comment #8
jn2 commented@sun
Thanks for the review.
Container element now added to the FAPI reference, for D7 and D8.