drupal_add_library('masonry', 'masonry') does not load the library. Stepping through the code, drupal_get_library is not finding the library. On the reports page, there's a message indicating that masonry is detected and available. Latest 7x, libraries 2.x

Comments

Anonymous’s picture

Status: Active » Fixed

I think you're looking for libraries_load()...

drupal_add_library() is a function in core Drupal for loading libraries declared using hook_library().

As Masonry uses the Libraries contrib module, you need to use its API functions instead. See here for more details.

davidfells81@gmail.com’s picture

libraries_load didn't work as expected either, but I'll check again. Thanks, was fuzzy on the distinction between the two APIs.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.