function _magnific_popup_use_legacy_path in Magnific Popup 8
Same name and namespace in other branches
- 8.2 magnific_popup.module \_magnific_popup_use_legacy_path()
Attempts to determine where the magnific popup library is installed.
Return value
bool TRUE if the legacy path should be used.
See also
https://www.drupal.org/node/2857287
1 call to _magnific_popup_use_legacy_path()
- magnific_popup_library_info_alter in ./
magnific_popup.module - Implements hook_library_info_alter().
File
- ./
magnific_popup.module, line 36 - Magnific popup module file for hooks and global methods.
Code
function _magnific_popup_use_legacy_path() {
if (file_exists(DRUPAL_ROOT . '/libraries/magnific-popup/jquery.magnific-popup.min.js') && file_exists(DRUPAL_ROOT . '/libraries/magnific-popup/magnific-popup.css')) {
return TRUE;
}
return FALSE;
}