JQuery.cookie in Drupal 7

15 Apr · by Tim Kamanin · 1 min read

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:

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

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

print_r(drupal_get_library('system'));

to get a full list of system libraries.

Comments

Required for comment verification