Closed (fixed)
Project:
Accessibility
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2013 at 14:36 UTC
Updated:
30 Nov 2013 at 03:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pietrocap commentedI've found the buggy code which generates the warning.
In subfolder modules/accessibility_content in file accessibility_content.modules for two times the default value of a checkbox is set as below:
FALSE cause the warning because In the Drupal Forms API the '#default_value' for a 'checkbox' form element must be an array and FALSE is not an array. We should use array() instead.
I've made a patch.
Comment #2
pietrocap commentedComment #3
Anonymous (not verified) commentedFixed default value for checkboxes, but a
checkbox(singular) does work with FALSE. Committed your patch other than that. Thanks.