function imagecrop_requirements in Image javascript crop 5
Implementation of hook_requirements().
File
- ./
imagecrop.install, line 25 - Install file.
Code
function imagecrop_requirements($phase) {
$requirements = array();
// Ensure translations don't break at install time.
$t = get_t();
// Check for jquery interface or jquery ui.
if (!module_exists('jquery_interface') && !module_exists('jquery_ui')) {
$requirements['imagecrop_jquery_library'] = array(
'title' => $t('Imagecrop Jquery Interface'),
'value' => $t('No Jquery Interface available'),
'severity' => REQUIREMENT_ERROR,
'description' => $t('Imagecache Javascript crop requires Jquery Interface or Jquery UI to be installed.'),
);
}
return $requirements;
}