You are here

function isotope_init in Isotope (with Masonry and Packery) 7

Same name and namespace in other branches
  1. 6 isotope.module \isotope_init()

Implements hook_init().

Checks for conflicts, and displays warnings if they are detected Adds the configured library javascript to the site

File

./isotope.module, line 43
Defines the default hooks that the history js module implements.

Code

function isotope_init() {
  drupal_add_library('isotope', 'jquery.isotope', TRUE);
  if (variable_get('isotope_css', TRUE)) {
    drupal_add_css(drupal_get_path('module', 'isotope') . '/css/isotope.css');
  }
}