summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2012-07-06 15:34:01 -0300
committerSilvio <silvio@socioambiental.org>2012-07-06 15:34:01 -0300
commit492046fedd804e4e24520b74ac30f35116d6b6e5 (patch)
treeb0f65a8c72d090068460824542c8d8af58642553
downloadtimelinejs-492046fedd804e4e24520b74ac30f35116d6b6e5.tar.gz
timelinejs-492046fedd804e4e24520b74ac30f35116d6b6e5.tar.bz2
Initial import
-rw-r--r--.gitmodules0
-rw-r--r--timelinejs.info4
-rw-r--r--timelinejs.install27
-rw-r--r--timelinejs.module6
4 files changed, 37 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.gitmodules
diff --git a/timelinejs.info b/timelinejs.info
new file mode 100644
index 0000000..999da41
--- /dev/null
+++ b/timelinejs.info
@@ -0,0 +1,4 @@
+name = "TimelineJS"
+description = "Implements TimelineJS widget"
+core = "7.x"
+version = "7.x-0.1"
diff --git a/timelinejs.install b/timelinejs.install
new file mode 100644
index 0000000..c2fd4a1
--- /dev/null
+++ b/timelinejs.install
@@ -0,0 +1,27 @@
+<?php
+
+/**
+ * @file
+ * TimelineJS installation functions.
+ */
+
+/**
+ * Implements hook_requirements()
+ */
+function timelinejs_requirements($phase) {
+ $requirements = array();
+
+ if ($phase == 'runtime') {
+ $timelinejs = libraries_get_path('timelinejs');
+ if (!is_dir($timelinejs)) {
+ $requirements['timelinejs'] = array(
+ 'title' => $t('TimelineJS'),
+ 'value' => $t('Could not find timelinejs installation at libraries folder.'),
+ 'description' => $t('Please download it from https://github.com/VeriteCo/Timeline'),
+ 'severity' => REQUIREMENT_ERROR,
+ );
+ }
+ }
+
+ return $requirements;
+}
diff --git a/timelinejs.module b/timelinejs.module
new file mode 100644
index 0000000..614b045
--- /dev/null
+++ b/timelinejs.module
@@ -0,0 +1,6 @@
+<?php
+
+/**
+ * @file
+ * TimelineJS module.
+ */