Timeline for Checkboxes: how do I set the default values or show the user defined values using Form API?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 24, 2014 at 6:27 | vote | accept | bcosynot | ||
Jul 29, 2013 at 11:12 | history | edited | Mołot | CC BY-SA 3.0 |
added 143 characters in body
|
Jul 29, 2013 at 11:11 | comment | added | Mołot | @vr3690 Nope, you didn't set default value. See comment under your question, or update to my answer. | |
Jul 29, 2013 at 11:08 | comment | added | bcosynot |
An array of all the content types can be obtained by using the following: $nodeTypesRaw=node_type_get_names(); . An array with the machine names of the content types as the keys and the human readable names as the values are obtained. When I set the '#default_value` using the variable $nodeMachineNames=array_keys($nodeTypesRaw); , the checkboxes remain un-checked.
|
|
Jul 29, 2013 at 11:02 | history | answered | Mołot | CC BY-SA 3.0 |