Drupal 6 support; *.jq.inc files
mfb - March 6, 2008 - 19:57
| Project: | jQ |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | aaron |
| Status: | closed |
Jump to:
Description
In drupal 6 at least, it would be nice to reduce .module file bloat by putting jq hooks in module.jq.inc files, which would be loaded on demand before invoking the hook. homologous to *.views.inc files.

#1
Is a drupal 6 version of jQ planned for anytime soon? I'm trying to figure out if it's worth providing support for it in the jQuery plugins module as I add plugins there.
#2
absolutely! thanks for the great idea. i'll work on that next week. and yes, a d6 version is planned soon -- this is probably the easiest of my modules to port.
#3
For now I just load an include file in the hook, but it would be nice to have it done automatically by jQ http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/jquery_plug...
#4
done.
it will now load module_name.jq.inc for the plugin info, so you can safely move hook_jq to that file now.
#5
i might backport this feature to 5 too...
#6
thanks. personally I wouldn't say backporting is necessary, it's really just d6 that has such a focus on include files.
#7
i switched the two branches accidentally. i fixed them now. sorry for any confusion...
#8
Automatically closed -- issue fixed for two weeks with no activity.