Posted by cstachris on May 29, 2009 at 6:17am
Hi - I was wondering if there was a set/get maintenance mode through the services module. Also, the ability to disable and enable modules?
Hi - I was wondering if there was a set/get maintenance mode through the services module. Also, the ability to disable and enable modules?
Comments
Here is an untested
Here is an untested theory:
First log in, or use user.login();
Then try possibly calling:
system.setVariable('site_offline',1);
As far as modules, I think a new service would have to be created to enable/disable them. Sounds fairly simple in theory. It could be as simple as flipping a switch in the mysql system table. But I'm not that advanced in drupal enough to know.
try the maintenance mode and let us know!
Matthew Connerton
http://www.mrconnerton.com
Matthew Connerton | matthew@aspiringweb.com
Aspiring Web a design & development agency