function _splashify_test_installed in Splashify 6
Same name and namespace in other branches
- 7 splashify.module \_splashify_test_installed()
Detects whether the variant is installed or not.
Determines if the JS file exists.
File
- ./
splashify.module, line 94
Code
function _splashify_test_installed($library, $name, $args) {
// Make sure the file exists.
$path = DRUPAL_ROOT . '/' . $library['library path'] . '/';
$file = file_exists($path . 'jstorage.min.js');
if (!$file) {
return FALSE;
}
else {
return TRUE;
}
}