function _photoswipe_requirements_isinstalled in PhotoSwipe 6
Determines whether the PhotoSwipe sources are present It checks if code-photoswipe-jQuery-1.0.19.min.js is present. This function is used by photoswipe_requirements()
Return value
boolean True if PhotoSwipe is installed
1 call to _photoswipe_requirements_isinstalled()
- photoswipe_requirements in ./
photoswipe.install - Implementation of hook_requirements().
File
- ./
photoswipe.install, line 50 - PhotoSwipe Module for Drupal 6.x
Code
function _photoswipe_requirements_isinstalled() {
global $psFile;
$photoswipe_path = 'sites/all/libraries/photoswipe/';
$jspath = $photoswipe_path . $psFile;
$jsp = file_exists($jspath);
return $jsp;
}