I know that an issue has been created to expose settings to ctools module, but development has been done on the dev branch.
However, I don't want to use the dev branch in production environment, so I made my own patch on the current release (7.x-1.1) to easily expose settings table to features without using ctools.
Following, what my patch adds:
- title column
- machine name column
- expose to features each rule displaying title name
- export rules to dedicated file
- add rules to settings table
- revert rules
I hope it helps someone.
Comments
Comment #1
sebastien m. commentedComment #2
sebastien m. commentedI forgot to add new file to the patch.
Comment #3
sebastien m. commentedSmall fix about features files naming rule.
Comment #4
joelpittetMind re-rolling this against dev version? Doesn't seem to apply.
Comment #5
ryank90 commentedIs there any further news on this functionality? None of the patches available seem to patch.
Comment #6
joshf commentedComment #7
chalk commentedSeems that patch #3 is no longer compatible with 7.x-1.x (7.x-1.4) code of module. I had to update this patch manually for our project. Maybe it will help somebody and save your time.
Comment #8
cezarion commented@Chalk, it seem's that the file login_destination.features.inc is missing in your patch.
I have tried to apply path 3 and after path 7 but it failed.
Do you have any idea or solution to use feature with login destination ?
Thank's a lot
Comment #9
chalk commented@cezarion you are right! Thanks for reply. Here is an updated patch.
Comment #10
bwaindwain commentedPatch #9 works fine for us on 7.x-1.4. Thanks @chalk
Just a heads up to anyone like me: apply this patch BEFORE installing the module, otherwise it will barf out db errors. If you already have it installed, disable then uninstall it. The patch needs to add some columns to the db on install.
Comment #11
damienmckenna@bwaindwain: Did you try running the database updates after applying the patch?
Comment #12
SRizo commentedMany thanks, #9 worked for me.
Comment #13
Lonnytunes commentedThe database update may fail if you had installed older patches (like patch #2 of the issue #1789652).
I fixed login_destination_update_7004() to support the quoted patch.
I hope it will work with patches of the issue #1645260 as well.
Comment #14
kingandyApplying this patch raised an error on my install:
Same on line 259, 281. Looks like shorthand array syntax which is not appropriate for this project per coding standards:
Find attached a patch with these lines switched to long array syntax, seems to work as expected.
Comment #15
Lonnytunes commentedOops! My bad! Thanks for the fix @kingandy.
Comment #16
Lonnytunes commentedTwo improvements:
(New patch based on the patch #14)
Comment #17
joelpittetIs the
old_machine_namestill needed?Comment #18
Lonnytunes commented@joelpittet: The
old_machine_name? Are you talking about thenamecolumn used for the machine name before?It will be removed after creation of the new
machine_namecolumn.Same treatment for the
labelcolumn replaced bytitle.Comment #19
earthangelconsulting commentedjust thought i would mention... i applied #16 to login_destination 7.x-1.4 a few years ago and it worked PERFECTLY, totally fills the bill!
big thanks to all who contributed to that patch!
early today i applied #16 to 7.x-1.4+8-dev (latest dev release, dated 2021-05-15) and it works fine there too :-)