summaryrefslogtreecommitdiff
path: root/timelinejs.install
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 /timelinejs.install
downloadtimelinejs-492046fedd804e4e24520b74ac30f35116d6b6e5.tar.gz
timelinejs-492046fedd804e4e24520b74ac30f35116d6b6e5.tar.bz2
Initial import
Diffstat (limited to 'timelinejs.install')
-rw-r--r--timelinejs.install27
1 files changed, 27 insertions, 0 deletions
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;
+}