Posted by jbrauer on July 9, 2008 at 6:03am
| Project: | Clean Pagination |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Calling drupal_add_js() in hook_init() results in intermittent errors as the function is undefined until later in the bootstrap.
Fatal error: Call to undefined function drupal_add_js() in /sites/all/modules/cleanpager/cleanpager.module on line 53
Comments
#1
The attached patch moves drupal_add_js() to the hook_menu() call.
It also addresses coding style issues reported by code-style.pl
#2
Wow, Josh, only took me a year to get to this. Eesh. Anyway, committed and done, just in time for a Drupal 7 release!
#3
Automatically closed -- issue fixed for 2 weeks with no activity.