I had a look at the patch and thank you for posting it. However the development of this module is long over (and this is a feature request), so let us just leave it as a patch for user that need it.
Mithy, do you mean that there won't be another stable release of this module that includes this functionality? (I might be confused, but wouldn't that be a wontfix?)
Does anyone know of any other modules that could do something similar that can be deployed easily using Features?
I tested the patch and it almost applied cleanly (rejected the .info file part) and it added a Login Destination setting in the features UI, but it didn't seem to actually export the data. The UI was also a little odd:
I had to fixup paths for making drush patching work. BTW, is there some way to avoid this? I happen to find a lot of patches that all need the -p1 option for patching. Drush however does by default use -p0 and fails on applying these patches.
#22 applied against the git version, but not against the packaged dev version.
I keep getting rejects on the removing of files in the .info
This patch applies against both git and packaged dev, but keeps the files in the info file.
I'll stop spamming this thread now, please review or fix the info!
Here is a reroll from the patch in #22. Since a lot of code in login destination changed since the last patch it was a lot of work to do the reroll. I also had to make some changes in the implementation:
Since a login destination now has a 'enabled' property, menu items for enabling/disabling a rule are removed.
All code previously added to login_destination.crud.inc, is now directly added to login_destination.module. This is because in the patch from #22 login_destination.module required 'login_destination.crud.inc' (so the code from 'login_destination.crud.inc' got always loaded) and as such I did not saw a reason why not to add the code directly to login_destination.module.
Improved messages for translation on delete/revert form.
I've only shortly tested the changes myself, so it probably still needs some work. One thing that requires work is that all login destination rules will be marked as overidden when hitting the "Save configuration" button on the login destination overview page without changing anything. I also didn't test if the database update (login_destination_update_7002()) still works.
Thanks megachriz, Patch is clearly apply to latest dev branch and working perfectly, can anyone add overridden link on login destination overview page as mention in #26.
Comments
Comment #1
mrfelton commentedYes, but for drupal 7 first me thinks.
Comment #2
nancydruI understand, but still "boo, hiss"
Comment #3
q0rban commentedComment #4
q0rban commentedAttached patch fixes the machine_name unique key.
Comment #5
revagomes commentedIt's working like a charm!
Tks @q0rban!
Comment #6
mithy commentedI had a look at the patch and thank you for posting it. However the development of this module is long over (and this is a feature request), so let us just leave it as a patch for user that need it.
Comment #7
liquid06 commentedMithy, do you mean that there won't be another stable release of this module that includes this functionality? (I might be confused, but wouldn't that be a wontfix?)
Does anyone know of any other modules that could do something similar that can be deployed easily using Features?
I tested the patch and it almost applied cleanly (rejected the .info file part) and it added a Login Destination setting in the features UI, but it didn't seem to actually export the data. The UI was also a little odd:
Comment #8
jwilson3FYI: Jelle_S has created a patch that pretty much overhauled this module to bring it CTools power on another issue as well #1789652: make configuration of this module exportable as a feature.... probably these efforts should be combined.
Comment #9
liquid06 commentedMarking as a duplicate of #1789652: make configuration of this module exportable as a feature.
Comment #10
q0rban commentedThis was the earlier issue, so setting back to RTBC, as mithy says, it won't post, but at least people will see that there is a reviewed patch here.
Comment #11
fgmThat patch has end-of-line and spacing problems, rerolled.
Comment #12
arknoll commentedpatch didn't apply for me. Rerolled + tested.
Comment #13
reubenavery commentedFixed one missing bit for saving rules. Rerolled again..
Comment #14
jwilson3as infrequently as this patch is updated an interdiff would be really helpful. jus' sayin'
Comment #15
kehan commentedI have just tested #13 and it applies cleanly and creates nice features exportables. Thanks for this.
Comment #16
bradjones1This doesn't apply cleanly to -dev.
Comment #17
thepanz commentedRerolled patch against 7.x-1.x -dev branch
Comment #18
thepanz commentedComment #19
LCM commentedHi,
I had to fixup paths for making drush patching work. BTW, is there some way to avoid this? I happen to find a lot of patches that all need the -p1 option for patching. Drush however does by default use -p0 and fails on applying these patches.
Best regards,
Lennart
Comment #20
mr.york commentedReroll.
Comment #21
thijsvdanker commented#20 didn't apply cleanly against the 7.x.1.x git version as it had packaging information in the .info diff
This patch fixes that.
Also added an isset to check to mitigate an error
Comment #22
thijsvdanker commentedChanged the issue number in the patch filename.
Comment #23
thijsvdanker commented#22 applied against the git version, but not against the packaged dev version.
I keep getting rejects on the removing of files in the .info
This patch applies against both git and packaged dev, but keeps the files in the info file.
I'll stop spamming this thread now, please review or fix the info!
Comment #24
jastraat commentedWe're using the patch in #23 successfully.
Comment #25
perennial.sky commentedThis patch doesn't apply cleanly to latest dev version.
Comment #26
megachrizHere is a reroll from the patch in #22. Since a lot of code in login destination changed since the last patch it was a lot of work to do the reroll. I also had to make some changes in the implementation:
I've only shortly tested the changes myself, so it probably still needs some work. One thing that requires work is that all login destination rules will be marked as overidden when hitting the "Save configuration" button on the login destination overview page without changing anything. I also didn't test if the database update (
login_destination_update_7002()) still works.Comment #27
perennial.sky commentedThanks megachriz, Patch is clearly apply to latest dev branch and working perfectly, can anyone add overridden link on login destination overview page as mention in #26.
Comment #28
hellolindsay commentedHello - this thread has been open for 4 years. Is anyone able to push this through to completion?
Comment #29
forestmars commentedThis issue should be superseded by 2414169 - Expose settings to features
In any case the patch on this thread is 2 years old and doesn't even apply.