Closed (fixed)
Project:
jQ
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
6 Mar 2008 at 19:57 UTC
Updated:
18 May 2008 at 19:12 UTC
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.
Comments
Comment #1
mfbIs 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.
Comment #2
aaron commentedabsolutely! 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.
Comment #3
mfbFor 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...
Comment #4
aaron commenteddone.
it will now load module_name.jq.inc for the plugin info, so you can safely move hook_jq to that file now.
Comment #5
aaron commentedi might backport this feature to 5 too...
Comment #6
mfbthanks. personally I wouldn't say backporting is necessary, it's really just d6 that has such a focus on include files.
Comment #7
aaron commentedi switched the two branches accidentally. i fixed them now. sorry for any confusion...
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.