make 2 seperate functions: one for themed items, and one for items array for more flexibility
yaron24 - July 22, 2009 - 06:53
| Project: | Similar Entries |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
function theme_similar_content($node) returns theme('item_list', $items). but as a developer i want to use those $items before they are themed. So it should be separated into 2 functions. The first receives the $node object (maybe more than 1 node, but that's for another task) and returns $items array. And the second function receives $items array and returns the themed list from the items.
It's a pretty easy task, yet crucial.
