Commit 5f11953b authored by cgalli's avatar cgalli Committed by slashrsm
Browse files

Issue #2627362 by cgalli, slashrsm, Primsi: Warning missing when the necesssar...

Issue #2627362 by cgalli, slashrsm, Primsi: Warning missing when the necesssar JS library is not available.
parent 453834b2
<?php
/**
* @file
* Install, update and uninstall functions for the dropzonejs module.
*/
/**
* Implements hook_requirements().
*/
function dropzonejs_requirements($phase) {
$requirements = [];
if (!file_exists(DRUPAL_ROOT . '/libraries/dropzone/dist/dropzone.js')) {
$requirements['dropzonejs_library'] = array(
'title' => t('Dropzone library missing'),
'description' => t('Dropzonejs requires the dropzone.js library.
Download it (https://github.com/enyo/dropzone) and place it in the
libraries folder (/libraries)'),
'severity' => REQUIREMENT_ERROR,
);
}
return $requirements;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment