summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2012-10-23 19:01:43 -0200
committerSilvio <silvio@socioambiental.org>2012-10-23 19:01:43 -0200
commitcfb20b47f93b94515cf9d02b1e887a8bbb7d8f15 (patch)
tree0960b7c48aec6ddcbef5e53ec78d7c21cc9867b5
parentb12dc9b5e112b0913ce0ecd1c44116f270a410af (diff)
downloadtimelinejs-cfb20b47f93b94515cf9d02b1e887a8bbb7d8f15.tar.gz
timelinejs-cfb20b47f93b94515cf9d02b1e887a8bbb7d8f15.tar.bz2
Minor fixes
-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);