system.service - take down for maintenance, unload module, load module

Events happening in the community are now at Drupal community events on www.drupal.org.
cstachris's picture

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

mrconnerton's picture

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

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: