once you implement hook_view()
, node_prepare()
(which handles filtering and putting $node->body
or $node->teaser
into $node->content
) is not called automatically. so, to actually display the decision's "description" field in decision output, you need to call node_prepare()
yourself. attached patch does this. i also set this field's weight in the content array to -1 so the description would come before all the voting-specific goo. that seemed like the most clear and intuitive placement, but feel free to rip out that line if you'd rather it shows up at the bottom of the page if you'd prefer.
Comment | File | Size | Author |
---|---|---|---|
decisions-body.patch.txt | 813 bytes | dww |
Comments
Comment #1
dwwi found anarcat in IRC, who reviewed and committed this (to both HEAD and DRUPAL-5). thanks!
Comment #2
(not verified) CreditAttribution: commented