drupal_add_css, drupal_add_js does not work

前端 未结 3 2062
南笙
南笙 2021-01-15 05:15

I am using drupal_add_css() and drupal_add_js() to add CSS and JavaScript files to my Drupal site. I am doing this in a module called control so th

3条回答
  •  清酒与你
    2021-01-15 05:38

    At the point your CSS/JS is needed, you can call it with drupal_add_css/js. You can also use it in the hook_init(), if your module is used on every page.

提交回复
热议问题