JQuery.cookie in Drupal 7

Apr 15, 2016 · by Tim Kamanin

A quick tip for all Drupalistas outhere: if you want to use jQuery.cookie in your project, you actually don't have to download and install the library. jQuery.cookie is a part of Drupal 7 and can be included as easy as typing:

php
drupal_add_library('system', 'jquery.cookie');

Wondering to see what other libraries are included? Run this:

php
print_r(drupal_get_library('system'));

to get a full list of system libraries.

Want to get more 🔥 tips like this one?

Subscribe to get notified about new dev tutorials