Created
July 17, 2013 07:22
-
-
Save opi/6018369 to your computer and use it in GitHub Desktop.
Alter jQuery UI css in drupal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_css_alter(). | |
*/ | |
function yourtheme_css_alter(&$css) { | |
// Do not use jQuery UI defaults | |
$yourtheme = drupal_get_path('theme', 'yourtheme'); | |
foreach(array('theme', 'tabs', 'accordion') as $file) { | |
if (isset($css['misc/ui/jquery.ui.'.$file.'.css'])) { | |
$css['misc/ui/jquery.ui.'.$file.'.css']['data'] = $yourtheme . '/css/jquery_ui/jquery.ui.'.$file.'.css'; | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment