diff options
author | Silvio <silvio@socioambiental.org> | 2013-06-25 13:56:50 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2013-06-25 13:56:50 -0300 |
commit | ee4874a1847e98590d24ce01b43f6ae518864986 (patch) | |
tree | 3b129c5b3052c5c3039ecda0fbdd00be55e2d4d3 /timelinejs.module | |
parent | 92fdd4b5361b1d25be91994afa499fbdc5d10110 (diff) | |
download | timelinejs-ee4874a1847e98590d24ce01b43f6ae518864986.tar.gz timelinejs-ee4874a1847e98590d24ce01b43f6ae518864986.tar.bz2 |
Initial tag support
Diffstat (limited to 'timelinejs.module')
-rw-r--r-- | timelinejs.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/timelinejs.module b/timelinejs.module index 9fd4791..1bf5644 100644 --- a/timelinejs.module +++ b/timelinejs.module @@ -104,7 +104,9 @@ function timelinejs_fetch_items($nid, $format = 'json') { $nodes = timelinejs_load_events($nid); foreach ($nodes as $node) { - $items[] = node_load($node->entity_id); + $content = node_load($node->entity_id); + $content->tag = taxonomy_term_load($content->field_categoria['und'][0]['tid']); + $items[] = $content; } if (empty($items)) { |