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

mfb - March 15, 2008 - 00:25
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.

#2

aaron - March 26, 2008 - 02:04
Assigned to:Anonymous» 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.

#3

mfb - March 26, 2008 - 02:27

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

aaron - May 1, 2008 - 18:03
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.

#5

aaron - May 1, 2008 - 18:03
Version:5.x-1.x-dev» 6.x-1.x-dev

i might backport this feature to 5 too...

#6

mfb - May 1, 2008 - 18:14

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

#7

aaron - May 4, 2008 - 19:08

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

#8

Anonymous (not verified) - May 18, 2008 - 19:12
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.