diff options
-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": |