Disable/remove javascript
does anyone know how to disable a javascript loaded by drupal?
<script src="/profiles/ncr/themes/contrib/bootstrap/js/bootstrap.js?ny8c02"></script>
I tried the following in the template.php file but no luck.
function bootstrap_ncr_js_alter(&$javascript) { $path = drupal_get_path('module', 'js_theme'); unset($js[$path . '/bootstrap.js']); }
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.