hello,

how do i check if the site is in maintenance mode through coding in php?

Comments

deruitern’s picture

Drupal 6 defines a constant named MAINTENANCE_MODE that you can use to see if the site is in maintenance mode. Try using code similar to the following:

if (defined('MAINTENANCE_MODE')) {
  // anything here will run if the site is in maintenance mode
}
Haidee’s picture

i will test this... thank you!