function tipsy_library in Tipsy 7
Implements hook_library().
File
- ./
tipsy.module, line 13
Code
function tipsy_library() {
$module_path = drupal_get_path('module', 'tipsy');
$libraries = array();
$libraries['tipsy'] = array(
'title' => 'Tipsy',
'website' => 'http://onehackoranother.com/projects/jquery/tipsy/',
'version' => '0.1.7',
'js' => array(
$module_path . '/javascripts/jquery.tipsy.js' => array(),
$module_path . '/javascripts/tipsy.js' => array(),
),
'css' => array(
$module_path . '/stylesheets/tipsy.css' => array(
'type' => 'file',
),
),
);
$settings = _tipsy_get_settings();
if ($settings['drupal_forms']['forms'] == 0) {
unset($settings['drupal_forms']);
}
drupal_add_js(array(
'tipsy' => $settings,
), 'setting');
return $libraries;
}