Skip to main content
9 events
when toggle format what by license comment
Nov 26, 2011 at 18:27 vote accept Ashlar
Nov 25, 2011 at 20:41 comment added Berdir And yes, as I said, you can not store render arrays, that just doesn't make sense. You only have two options, creating a number of fields which only works if your structure is static. If you have dynamic, complex content structures, you really only have one choice. Write it in the body or another text field. As HTML. Render arrays are designed to convert data structures into something that can be rendered to HTML but still be altered/themed differently.
Nov 25, 2011 at 20:40 comment added Berdir If you have follow-up questions, it's best to create separate questions and refer to this one, comments don't work well for long explanations. A render array is basically a subset of a $form definition, so you can use the form api documentation api.drupal.org/api/drupal/….
Nov 24, 2011 at 1:51 comment added Ashlar I could keep going.......
Nov 24, 2011 at 1:50 comment added Ashlar I just noticed that the table array does not define a table dimensions. What is going on here?
Nov 24, 2011 at 1:48 comment added Ashlar You're right, I am a bit confused by your statement that I need to enter the content into the node. In your render array example above you have text in the child element, and a table with content in $rows. The content I want to place will have similar sections of paragraphs, lists and tables all within a single body field.
Nov 24, 2011 at 1:41 comment added Ashlar The system_element_info is really nice in that it shows the range of #properties associated with system form elements. Is there more documentation that outlines what is used elsewhere? And how render uses it?
Nov 24, 2011 at 1:38 comment added Ashlar First, thanks for a great answer. I must add however, that it would have been even better if you had written a book on the subject. :) Between your answer and the references to userpoints_list_transactions, hook_element, & system_element_info, I must have a thousand follow up questions on what those parts are doing. A few basic ones follow:
Nov 23, 2011 at 21:37 history answered Berdir CC BY-SA 3.0