You are here

function maintenance_exempt_get_urls in Maintenance Exempt 7

Same name and namespace in other branches
  1. 8 maintenance_exempt.module \maintenance_exempt_get_urls()

Extract an array of URL paths from the settings.

1 call to maintenance_exempt_get_urls()
maintenance_exempt_menu_site_status_alter in ./maintenance_exempt.module
Implements hook_menu_site_status_alter().

File

./maintenance_exempt.module, line 150
Allow exemption of maintenance mode based on either certain set IP addresses or matching a set query string value.

Code

function maintenance_exempt_get_urls() {
  $allowed_urls = variable_get('maintenance_exempt_urls');
  return array_map('trim', explode("\n", $allowed_urls));
}