Remove CDATA js in Drupal 7

Public

Remove CDATA js in Drupal 7

Get raw version
php
  1. function mytheme_js_alter(&$js){
  2. unset($js['settings']);
  3. }

Comments

slozier's picture

Removing a specific file In template.php

function THEMENAME_js_alter(&$js){
unset($js['sites/all/modules/contrib/google_cse/google_cse.js']);
}

goodmanr's picture

what about for removing cdata css?

henry tran's picture

hi ! when i usset($js['settings']) in hook_alter_js() ...then ckeditor upload image by module imce ...all button image and resize not show ... so some js not run on my website .. ! when i remove this code .. website run normal .. !