Pathologic was missing because of a .git folder inside.
[yaffs-website] / web / modules / contrib / slick / slick.install
1 <?php
2
3 /**
4  * @file
5  * Installation actions for Slick.
6  */
7
8 /**
9  * Implements hook_requirements().
10  */
11 function slick_requirements($phase) {
12   if ($phase != 'runtime') {
13     return [];
14   }
15
16   if (function_exists('libraries_get_path')) {
17     $path = libraries_get_path('slick') . '/slick/slick.min.js';
18   }
19   else {
20     $path = DRUPAL_ROOT . '/libraries/slick/slick/slick.min.js';
21   }
22
23   $exists = is_file($path);
24
25   return [
26     'slick_library' => [
27       'title'       => t('Slick library'),
28       'description' => $exists ? '' : t('The <a href=":url">Slick library</a> should be installed at <strong>/libraries/slick/slick/slick.min.js</strong>, or any path supported by libraries.module if installed.', [':url' => 'https://github.com/kenwheeler/slick/']),
29       'severity'    => $exists ? REQUIREMENT_OK : REQUIREMENT_ERROR,
30       'value'       => $exists ? t('Installed') : t('Not installed'),
31     ],
32   ];
33 }