function _splashify_test_installed in Splashify 7
Same name and namespace in other branches
- 6 splashify.module \_splashify_test_installed()
Detects whether the variant is installed or not.
Determines if the JS file exists.
1 string reference to '_splashify_test_installed'
- splashify_libraries_info in ./
splashify.module - Implements hook_libraries_info().
File
- ./
splashify.module, line 171
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;
}
}