Check REST API Maintenance Mode

Development Status
Stable
Active Installs
Maintainers
Download

Last updated: 2017-10-25

Works with CiviCRM 4.7 and should work on CiviCRM 5.0 or higher

This extension extension uses an APIWrapper hook to:

  • check for all API requests if the request comes from REST (if request holds key and api_key)

    • if so, checks if the hosting website is in maintenance mode (implemented for Drupal, but can be generic. Based on CRM_Core_Config::singleton->userFramework)

    • if maintenance mode is on, it throws an API_Exception with error code maintenance_mode