hello,
how do i check if the site is in maintenance mode through coding in php?
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 }
i will test this... thank you!
Comments
Check the MAINTENANCE_MODE constant
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:
thanks.. i will test this...
i will test this... thank you!