Hi everyone,

I'm looking for a way to pull off the folowing trick:

For a drupal site I am building right now, I would like to make it available ONLY on a certain day of the week. So I'm looking for a way to put it in maintenance mode automatically when it is any other day of the week other than the one I specified.

Does anyone have an idea on how to pull this off?

Comments

nevets’s picture

You could make a small module that implements hook_cron(). It could set/clear the appropriate information (what ever happens when you manually put the site in maintenance mode)

alfthecat’s picture

Hey nevets, thanks for the reply. I've never embarked on creating modules, do you perhaps have a good suggestion for me to start my journey into mastering this skill? :)

----
"People make mistakes. To really mess something up you need a computer."

nevets’s picture

You'll need the first two steps here: http://drupal.org/node/206753, "Getting Started" and "Telling Drupal about your module". The information for hook_cron is here: http://api.drupal.org/api/function/hook_cron/6 (remember 'hook' gets replaced by your module name).