From 492046fedd804e4e24520b74ac30f35116d6b6e5 Mon Sep 17 00:00:00 2001
From: Silvio <silvio@socioambiental.org>
Date: Fri, 6 Jul 2012 15:34:01 -0300
Subject: Initial import

---
 .gitmodules        |  0
 timelinejs.info    |  4 ++++
 timelinejs.install | 27 +++++++++++++++++++++++++++
 timelinejs.module  |  6 ++++++
 4 files changed, 37 insertions(+)
 create mode 100644 .gitmodules
 create mode 100644 timelinejs.info
 create mode 100644 timelinejs.install
 create mode 100644 timelinejs.module

diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..e69de29
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.
+ */
-- 
cgit v1.2.3