Skip to main content
Tweeted twitter.com/#!/StackDrupal/status/527820972343042048

Render array in FAPI How do I know when a render array will be processed properly?

I'm still getting to grips with render arrays and there similarity to FAPI arrays is a point of confusion. I'm customisingcustomizing a node form using hook_form_alterhook_form_alter and I wanted to insert some custom markup in place of a field,.

I have inserted a table render array as a child of a the field FAPI container array and much to my suprisesurprise the table was rendered. What's going on here? 

How do I know when a render array will be processed properly?

I'm still getting to grips with render arrays and there similarity to FAPI arrays is a point of confusion. I'm customising a node form using hook_form_alter and I wanted to insert some custom markup in place of a field, I inserted a table render array as a child of a the field FAPI container array and much to my suprise the table was rendered. What's going on here? How do I know when a render array will be processed properly?

I'm still getting to grips with render arrays and there similarity to FAPI arrays is a point of confusion. I'm customizing a node form using hook_form_alter and I wanted to insert some custom markup in place of a field.

I have inserted a table render array as a child of a the field FAPI container array and much to my surprise the table was rendered. What's going on here? 

How do I know when a render array will be processed properly?

Source Link
ratface
  • 340
  • 1
  • 10

Render array in FAPI array

I'm still getting to grips with render arrays and there similarity to FAPI arrays is a point of confusion. I'm customising a node form using hook_form_alter and I wanted to insert some custom markup in place of a field, I inserted a table render array as a child of a the field FAPI container array and much to my suprise the table was rendered. What's going on here? How do I know when a render array will be processed properly?