Skip to main content
6 events
when toggle format what by license comment
Aug 5, 2016 at 10:36 comment added Jimmy Ko @Collins I think field uses checkboxes rather than checkbox in all cases. And checkboxes only accept array as value. And the error happen on form_type_checkboxes_value() can prove it.
Aug 5, 2016 at 10:33 vote accept Collins
Aug 5, 2016 at 10:33 comment added Collins Yep, that worked. I'm guessing that worked because the default value is expecting an array, even if there is only one? Thanks!
Aug 5, 2016 at 9:48 comment added Jimmy Ko I supposed that $unitid should be a node as it is the value from node_load()....
Aug 5, 2016 at 9:47 history edited Jimmy Ko CC BY-SA 3.0
Mention about the variable name problem.
Aug 5, 2016 at 9:45 history answered Jimmy Ko CC BY-SA 3.0