Closed (fixed)
Project:
LoginToboggan
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
25 Mar 2010 at 20:14 UTC
Updated:
17 Feb 2012 at 07:00 UTC
Jump to comment: Most recent file
this module needs to be checked for 7.x compatibility, and updated if necessary.
7.x development for LoginToboggan happens on the HEAD branch, so please commit any 7.x changes there.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 753224_3_LT_rules.patch | 763 bytes | scor |
Comments
Comment #1
mermentau commentedTried to install Login Toboggan Alpha 3 on Drupal 7 Alpha 6 and get this warning today:
Comment #2
hunmonk commenteddrupal 7 isn't released yet, this is not a major issue at this time.
Comment #3
scor commentedComment #4
hunmonk commentedthe module was ported prior to the initial 7.x release. can you give me some more detail what your patch is addressing exactly?
Comment #5
scor commentedThis are the changes I had to make so that LT can integrate with the latest -dev snapshot of rules. Rules complains that
# Unable to add this event as it does not provide all variables utilized by the reaction rule unlabeled.otherwise. This patch was rolled against the LT 7.x (git master branch).Comment #6
hunmonk commentedsudhirporwal needs to weigh in on this -- LT Rules is his submodule...
Comment #7
1sp commentedI see the patch as incomplete because it misses the necessary changes (explicit loading of required files in .info etc.)
Comment #8
scor commentedhttp://drupal.org/node/542202#files
Comment #9
1sp commentedI believe that in .info file you would need to load up the logintoboggan_rules.rules.inc file. Please consult the rules module code for details.
Comment #10
hunmonk commentedyou're only required to include php files in the .info file if they contain class or interface declarations, which logintoboggan_rules.rules.inc does not.
i am, however, a bit confused how that file ever gets loaded. does rules scan for [modulename].rules.inc files or something?
Comment #11
scor commented@sudhirporwal .info does not load up the files for you, unless they contain classes in which case they need to be listed in .info.
rules.module includes the MODULENAME.rules.inc files automatically.
Comment #12
hunmonk commented@sudhirporwal: now that that's cleared up, can we get a review on the actual changes in the patch?
thanks!
Comment #13
1sp commented@scor ok, i understand that. But I believe this is something that is followed by all Rules extending modules I have seen for Drupal7, we should follow the convention if any. @hunmonk, what do you think on this ?
P.S I tried the patch and it does work with latest Drupal7, LoginToboggan-7.x and Rules-7.x releases. We just clear out the .info matter and I will commit it into the code-base.
Comment #14
hunmonk commented@sudhirporwal: i want to follow core conventions, not Rules module conventions. most likely those other modules are not doing it correctly, as at one point it was required to put all includes in the .info file, but that was amended during the development cycle.
so, this is ready to go.
Comment #15
1sp commentedVery well, here it goes to the LT master branch :)
@hunmonk : thanks for the tip regarding module includes.
@scor cool work. thanks!
Comment #17
shadowdknight commentedHi,
I still face this issue.Anyone?
Thanks
Comment #18
1sp commented@shadowhitman can you please elaborate the issue you are facing ?