diff options
author | Silvio <silvio@socioambiental.org> | 2012-08-02 17:53:53 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2012-08-02 17:53:53 -0300 |
commit | 8643c67b038376f0824af0cc71c662170c979263 (patch) | |
tree | 17eaf2252f7a8c206786bb3f063d078cf4a37a25 | |
parent | 53454451a84938723f399a4dd0ced569a5b9fa28 (diff) | |
download | timelinejs-8643c67b038376f0824af0cc71c662170c979263.tar.gz timelinejs-8643c67b038376f0824af0cc71c662170c979263.tar.bz2 |
Changing event ctype and date field
-rw-r--r-- | timelinejs.module | 4 | ||||
-rw-r--r-- | timelinejs_json_event.tpl.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/timelinejs.module b/timelinejs.module index 2e79b4e..9147b16 100644 --- a/timelinejs.module +++ b/timelinejs.module @@ -77,7 +77,7 @@ function timelinejs_load_events($nid) { // Basic query. $query ->fields('t', array('entity_id')) - ->condition('t.bundle', 'evento') + ->condition('t.bundle', 'event') ->condition('t.field_timeline_target_id', $nid, '='); $result = $query->execute(); @@ -105,7 +105,7 @@ function timelinejs_json($nid) { $text = $media = NULL; $headline = $timeline->title; - $date = $timeline->field_data['und']['0']['value']; + $date = $timeline->field_date['und']['0']['value']; print theme('timelinejs_json', array( 'headline' => $headline, diff --git a/timelinejs_json_event.tpl.php b/timelinejs_json_event.tpl.php index 575017e..90846f8 100644 --- a/timelinejs_json_event.tpl.php +++ b/timelinejs_json_event.tpl.php @@ -1,5 +1,5 @@ { - "startDate":"<?php print strftime('%Y,%m,%d,', strtotime($event->field_data['und'][0]['value'])); ?>", + "startDate":"<?php print strftime('%Y,%m,%d,', strtotime($event->field_date['und'][0]['value'])); ?>", "headline":"<?php print $event->title; ?>", "text":"<?php print $event->body['und'][0]['value']; ?>", "asset": |