You are here

function masonry_installed in Masonry API 7.3

Same name and namespace in other branches
  1. 7.2 masonry.module \masonry_installed()

Check if the Masonry and imagesLoaded libraries are installed.

Return value

A boolean indicating the installed status.

File

./masonry.module, line 55
Provides an API for integrating the jQuery Masonry plugin with Drupal.

Code

function masonry_installed() {
  $masonry = libraries_detect('masonry');
  $imagesloaded = libraries_detect('imagesloaded');
  if (!empty($masonry['installed']) && !empty($imagesloaded['installed'])) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}