summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--timelinejs.info2
-rw-r--r--timelinejs.module2
2 files changed, 3 insertions, 1 deletions
diff --git a/timelinejs.info b/timelinejs.info
index 999da41..7e5f513 100644
--- a/timelinejs.info
+++ b/timelinejs.info
@@ -2,3 +2,5 @@ name = "TimelineJS"
description = "Implements TimelineJS widget"
core = "7.x"
version = "7.x-0.1"
+
+dependencies[] = libraries
diff --git a/timelinejs.module b/timelinejs.module
index 04593c0..4971acb 100644
--- a/timelinejs.module
+++ b/timelinejs.module
@@ -154,7 +154,7 @@ function timelinejs($nid, $width = '960px', $height = '500px') {
global $base_url;
$theme_path = drupal_get_path('theme', $theme);
- $library_path = drupal_get_path('libraries', 'timelinejs');
+ $library_path = libraries_get_path('timelinejs');
$css = (file_exists($theme_path .'/timeline.css')) ? '/'. $theme_path .'/timeline.css' : '/'. $library_path .'/compiled/css/timeline.css';