imagelightbox.install in ImageLightbox 2.x
Same filename and directory in other branches
Install functions for the imagelightbox module.
File
imagelightbox.installView source
<?php
/**
* @file
* Install functions for the imagelightbox module.
*/
/**
* Implements hook_requirements().
*/
// function imagelightbox_requirements($phase) {
// $requirements = [];
// if ($phase == 'runtime') {
// if ((!file_exists(drupal_get_path('module', 'imagelightbox') . 'libraries/imagelightbox.js')) && (!file_exists(drupal_get_path('module', 'imagelightbox') . '/modules/libraries/imagelightbox.js'))) {
// $requirements['imagelightbox_library'] = [
// 'title' => t('ImageLightBox library'),
// 'value' => t('Not found'),
// 'severity' => REQUIREMENT_ERROR,
// 'description' => t(
// 'You need to install the imagelightbox library by executing the drush command "drush imagelightbox-download" or "drush ilb-dl". If you wish to manualy install the latest imagelightbox.js, download the <a href=":library_url">imagelightbox library</a> and extract the archive to the <em>libraries/imagelightbox</em> directory on your server.',
// [':library_url' => 'https://github.com/osvaldasvalutis/imageLightbox.js']
// ),
// ];
// }
// }
// return $requirements;
// }