API page: http://api.drupal.org/api/drupal/includes%21form.inc/function/theme_chec...

in element allowed properties you mentioned #value .. #value isn't used, #checked is

Comments

jhodgdon’s picture

Title: #checked not #value » #checked attribute not mentioned in theme_checkbox()
Version: 7.x-dev » 8.x-dev
Issue tags: +Novice, +Needs backport to D7

Actually, #value is used -- in form_process_checkbox(). But I agree that #checked should be added to the list.

chertzog’s picture

Status: Active » Needs review
StatusFileSize
new496 bytes

Patch attached.

chertzog’s picture

Version: 8.x-dev » 7.x-dev
StatusFileSize
new476 bytes

And for D7.

jhodgdon’s picture

Version: 7.x-dev » 8.x-dev
Status: Needs review » Fixed

See http://drupal.org/node/1488414#comment-5748422 on the wisdom of uploading D7 patches, and the need to keep issues at D8 until fixed in D8. Thanks!

Meanwhile, the patch in #2 is fine for D8 and D7. Committed to both. Thanks!

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

Anonymous’s picture

Issue summary: View changes

fixing typo