How do you add jQuery tabs in a "template.php" file?
I'm trying to add it with drupal_add_library('system', 'jQuery.tabs')
or drupal_add_js('/misc/ui/jquery.ui.tabs.min.js')
, but I'm not having any luck.
Here's my full snippet:
function custom_theme(&$existing, $type, $theme, $path) {
$hooks = array();
drupal_add_library('system', 'ui.tabs');
// custom.js will call jQuery.tabs!
drupal_add_js( path_to_theme() .'/js/custom.js', array('weight' => 9));
return $hooks;
}