Skip to content

Instantly share code, notes, and snippets.

@gregmercer
Created August 9, 2012 23:55
Show Gist options
  • Save gregmercer/3309256 to your computer and use it in GitHub Desktop.
Save gregmercer/3309256 to your computer and use it in GitHub Desktop.
Drupal: behaviors code
(function ($) {
Drupal.behaviors.<replace with module name> = {
attach: function (context, settings) {
$(document).ready(function() {
... stuff goes here ...
}
}
};
}) (jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment