jquery_plugin.module in jQuery plugins 6
Same filename and directory in other branches
File
jquery_plugin.moduleView source
<?php
/**
* Add a jQuery plugin to a page.
*/
function jquery_plugin_add($plugin) {
static $plugins = array(), $path;
if (!isset($path)) {
$path = drupal_get_path('module', 'jquery_plugin');
}
if (!isset($plugins[$plugin])) {
drupal_add_js($path . '/jquery.' . $plugin . '.min.js');
$plugins[$plugin] = TRUE;
}
}
Functions
Name![]() |
Description |
---|---|
jquery_plugin_add | Add a jQuery plugin to a page. |