Postponed on #1280996: New language_select element type for form API. The element behaves as a 'value' type until language module is enabled at which point this behaves as a 'select' type. The only extra/new option is #languages which takes constants like language_list().

Comments

vasi1186’s picture

Status: Postponed » Needs review

I created a change notice: http://drupal.org/node/1749954 that documents the new form element.

gábor hojtsy’s picture

Issue tags: +D8MI

So the task here would be to turn that change notice into a patch for documentation module.

lomo’s picture

Assigned: Unassigned » lomo
Status: Needs review » Active

Working on it. :-)

I've made minor modifications to the change notice. Editing the massive tables will take a while, but most of the change notice can go in with minor formatting changes for consistency.

lomo’s picture

Status: Active » Needs review
StatusFileSize
new25.98 KB

Patch attached.

lomo’s picture

StatusFileSize
new33.72 KB

Here is the full HTML file, post-patch for easier review (without need to checkout the whole HUGE "documentation" project)

yesct’s picture

StatusFileSize
new74.87 KB

at forms_api_reference.html#options
(and all the other properties used by language_select, other than #languages which is ok)
#language_select needs to be added in the "Used by" alphabetical list.

Why are some of the terms in the Used by alphabetical? Maybe it's ok for some of them since it's copied from what the select list looks like, but here, #languages should not be bold?
why-bold-2012-08-25_1925.png

yesct’s picture

Status: Needs review » Needs work
gábor hojtsy’s picture

Status: Needs work » Fixed

Reviewed this in person in detail with LoMo. We found a few issues while reviewing and LoMo cycled those improvements back to the change notice even. It looks good and the code itself is not really reviewable as in the patch (due to the very ugly ways we do these tables). Committed this to the repo, we can always improve on it.

gábor hojtsy’s picture

Status: Fixed » Needs work

Cross-post. Now taking patches off of what I committed :)

lomo’s picture

Status: Needs work » Needs review
StatusFileSize
new37.66 KB

I think we are good now. :-)

Gábor said that we DO want the bold text for #languages since this will be a new "important element". All "used by" lists now include "language_select" link. Thanks for catching that, YesCT. :-)

lomo’s picture

StatusFileSize
new11.9 KB

This patch should be what we want, then. :-)

gábor hojtsy’s picture

Status: Needs review » Fixed
Issue tags: +sprint

Committed, thanks!

gábor hojtsy’s picture

@LoMo: the automation of the form API docs is being discussed in #1617948: [policy for now] New standard for documenting form/render elements and properties.

Automatically closed -- issue fixed for 2 weeks with no activity.