1
vote
2answers
103 views

drupal_match_path() for multiple wildcard patterns?

I want to add some CSS and JS to multiple matched wildcard URL patterns. According to Add javascript to multiple specific urls, I can use a wildcard using drupal_match_path() and that works well for ...
3
votes
3answers
2k views

How to unset javascripts in Drupal?

I wanted to unset some javascripts since they does nothing but conflict on my custom JS in my mobile theme. What I did: // Load all js scripts $scripts = drupal_add_js(); // Unset all ...
0
votes
2answers
394 views

drupal_add_js causes blocks to be executed twice

I added this code to template.php (in Zen subtheme): function mytheme_preprocess_page(&$vars) { if ($vars['is_front']) { drupal_add_js (libraries_get_path('jquery.cycle') . ...