summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--features/timelinejs_feature/timelinejs_feature.info2
-rw-r--r--timelinejs.module4
2 files changed, 5 insertions, 1 deletions
diff --git a/features/timelinejs_feature/timelinejs_feature.info b/features/timelinejs_feature/timelinejs_feature.info
index a74e752..b16e28c 100644
--- a/features/timelinejs_feature/timelinejs_feature.info
+++ b/features/timelinejs_feature/timelinejs_feature.info
@@ -13,10 +13,10 @@ dependencies[] = features
dependencies[] = field_group
dependencies[] = file
dependencies[] = image
-dependencies[] = isa_boletim_feature
dependencies[] = options
dependencies[] = strongarm
dependencies[] = taxonomy
+dependencies[] = timelinejs
features[ctools][] = field_group:field_group:1
features[ctools][] = strongarm:strongarm:1
features[features_api][] = api:1
diff --git a/timelinejs.module b/timelinejs.module
index 9ca1985..3c3f6a1 100644
--- a/timelinejs.module
+++ b/timelinejs.module
@@ -109,6 +109,10 @@ function timelinejs_fetch_items($nid, $format = 'json') {
}
foreach ($items as $event) {
+ if (!isset($event->body['und'])) {
+ $event->body['und'] = NULL;
+ }
+
$output[] = theme('timelinejs_'. $format .'_event', array('event' => $event));
if ($format == 'json') {
$events = implode(',', $output);