When mysite default settings are changed, there should be an option to reset all pages to the new defaults
Is there a way to do this manually?
When mysite default settings are changed, there should be an option to reset all pages to the new defaults
Is there a way to do this manually?
Comments
Comment #1
agentrickardThe design is to set defaults and then let individual users override those defaults.
The way to do this manually would be to uninstall the module, re-install, and then reset the defaults.
You could also run the following queries directly to avoid a re-install.
The problem then is that if your users have made any customizations, they will not know why their pages have been reset. That is the reason why this option does not currently exist.
Comment #2
decibel.places commentedyeah, I understand the "customization" angle; however I am using it now and the site is in dev, when we change the defaults, we have to go through all the test users to make sure they are at the new defaults.
It would be nice if admin had a total reset button, rather than uninstall and reinstall!
The table mysite has the following structure:
So I guess we can construct a query to pull the uid=0 settings (layout, style, etc) and then UPDATE the rest of the columns...
next time, I'll try it...
Comment #3
agentrickardSorry, I haven't worked with MySite in a while.
You need to empty the {mysite_data} table, not the {mysite} table.
Comment #4
decibel.places commentedThat will unset all settings, correct?
I want a way to update user's settings to new defaults for uid = 0
The individual settings are in the mysite and mysite_page tables right? layout, style, format, theme - so in those two tables I want to update all values to the uid = 0 values
Yeah, I could write a php snippet and make it a block or story or something...