Skip to content

Instantly share code, notes, and snippets.

@input
input / html
Created February 13, 2012 19:25
Drupal 7 scrollTop Link
<a href="#" id="to-top" title="Back to top">To top</a>
@input
input / example HTML
Created January 22, 2012 20:53
Drupal 7 jQuery Demo
<a href="#" id="togg-link">Click this link to toggle the content displayed below</a>
<div id="togg">Content to be toggled.</div>
@input
input / example HTML
Created January 22, 2012 20:51
Drupal 6 jQuery Demo
<a href="#" id="togg-link">Click this link to toggle the content displayed below</a>
<div id="togg">Content to be toggled.</div>
@input
input / Usage
Created January 11, 2012 20:01
Add a jQuery UI library to a Drupal 7 site via template.php
Usage
-----
Place the 'themename_preprocess_html()' function in your theme's template.php file.
Rename 'themename' to your theme's actual name,
e.g. for 'bartik' the function name would be changed to 'bartik_preprocess_html'.
Change 'ui.slider' to whichever jQuery UI library you want to add.
In Drupal 7, jQuery UI library files are stored in '/misc/ui'.
See: http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_add_library/7 for reference.