You are here

function instance_settings_init in Instance settings 7

Same name and namespace in other branches
  1. 7.2 instance_settings.module \instance_settings_init()

Implements hook_init().

File

./instance_settings.module, line 42
Instance settings.

Code

function instance_settings_init() {
  if (variable_get('instance_settings_apply_on_page_load', 0)) {
    drupal_set_message(t('Apply instance settings on each page load mode is enabled. You need to disable it for production instances !link', array(
      '!link' => l(t('here'), INSTANCE_SETTINGS_ADMIN_PAGE_PATH),
    )));
    instance_settings_apply();
  }
}