function _epsacrop_is_json2_exists in EPSA Crop - Image Cropping 7.2
Same name and namespace in other branches
- 8.2 epsacrop.module \_epsacrop_is_json2_exists()
- 6.2 epsacrop.module \_epsacrop_is_json2_exists()
- 6 epsacrop.module \_epsacrop_is_json2_exists()
Check if json2.js is findable.
@access private
Return value
void
1 call to _epsacrop_is_json2_exists()
- epsacrop_requirements in ./
epsacrop.install - Implementation of hook_requirements.
File
- ./
epsacrop.module, line 908 - The main file of module
Code
function _epsacrop_is_json2_exists($display_message = FALSE) {
$filepath = libraries_get_path('json2') . '/json2.js';
if (file_exists($filepath)) {
return TRUE;
}
if ($display_message) {
drupal_set_message(t('Could be find the json2.js file %path, check your install.', array(
'%path' => $filepath,
)), 'error');
}
}