PHP头条
热点:

问题:Drupal6中如何实现Drupal7中hook_js_alter-PHP源码


Drupal 7 中有hook_js_alter(&$javascript) , 如何在drupal6中实现类似的方法呢。
最近在项目(Drupal 6平台) 中遇到的一个问题, 子主题中要替换一个在基主题中加载的js, Drupal 7中很好实现,直接用hook_js_alter就行了, 但到了Drupal 6 怎么做呢???(最后没办法 直接用字符串str_replace函数把那段js引用给去掉了).

Drupal 7:
  function hook_js_alter(&$javascript){
  }
Drupal 6:
  ????

www.phpzy.comtrue/phpyy/49290.htmlTechArticle问题:Drupal6中如何实现Drupal7中hook_js_alter-PHP源码 Drupal 7 中有hook_js_alter($javascript){ }Drupal 6: ????...

相关文章

PHP之友评论

今天推荐