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

mfb’s picture

Title: *.jq.inc files » Drupal 6 support; *.jq.inc files

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.

aaron’s picture

Assigned: Unassigned » aaron

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.

mfb’s picture

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...

aaron’s picture

Status: Active » Fixed

done.

it will now load module_name.jq.inc for the plugin info, so you can safely move hook_jq to that file now.

aaron’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev

i might backport this feature to 5 too...

mfb’s picture

thanks. personally I wouldn't say backporting is necessary, it's really just d6 that has such a focus on include files.

aaron’s picture

i switched the two branches accidentally. i fixed them now. sorry for any confusion...

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.