Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Drupal 7 如何将自定义js文件添加到重新加载的Drupal7主题中?_Drupal 7 - Fatal编程技术网

Drupal 7 如何将自定义js文件添加到重新加载的Drupal7主题中?

Drupal 7 如何将自定义js文件添加到重新加载的Drupal7主题中?,drupal-7,Drupal 7,在pixture\u reloated\u process\u html函数中尝试通过drupal\u add\u js(…)添加文件无效只需在pixture\u reloated.info主题文件中添加文件即可 stylesheets[all][] = relative_path/mystyle.css scripts[] = relative_path/myscript.js

pixture\u reloated\u process\u html
函数中尝试通过
drupal\u add\u js(…)
添加文件无效

只需在
pixture\u reloated.info
主题文件中添加文件即可

stylesheets[all][] = relative_path/mystyle.css
scripts[] = relative_path/myscript.js