Needs review
Project:
Image Caption
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Feb 2019 at 23:55 UTC
Updated:
23 Feb 2019 at 23:55 UTC
Jump to comment: Most recent
Load javascript in image_caption.info file instead of in hook_init(). It is not recommended implementing hook_init() for loading javascript and css.
https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...
To add CSS or JS files that should be present on all pages, modules should not implement this hook, but declare these files in their .info file.
| Comment | File | Size | Author |
|---|---|---|---|
| load_javascript_in_info_file_instead_of_in_hook_init()_.patch | 1.17 KB | ey |
Comments