function superfish_library_check in Superfish 7
Same name and namespace in other branches
- 8 superfish.module \superfish_library_check()
Verifies Superfish library is present.
2 calls to superfish_library_check()
- superfish_enable in ./
superfish.install - Implements hook_enable().
- superfish_requirements in ./
superfish.install - Implements hook_requirements().
File
- ./
superfish.install, line 63 - Install, update and uninstall functions for the Superfish module.
Code
function superfish_library_check() {
if (function_exists('libraries_get_libraries')) {
$library = libraries_get_libraries();
if (isset($library['superfish'])) {
return TRUE;
}
}
elseif (file_exists('sites/all/libraries/superfish/superfish.js') || file_exists('profiles/' . drupal_get_profile() . '/libraries/superfish/superfish.js')) {
return TRUE;
}
return FALSE;
}