function masonry_installed in Masonry API 7.2
Same name and namespace in other branches
- 7.3 masonry.module \masonry_installed()
Check if the Masonry library is installed.
Return value
A boolean indicating the installed status.
File
- ./
masonry.module, line 38 - Provides an API for integrating the jQuery Masonry plugin with Drupal.
Code
function masonry_installed() {
if (($library = libraries_detect('masonry')) && !empty($library['installed'])) {
return TRUE;
}
else {
return FALSE;
}
}