You are here

health.install in Health Status 7

Sets up the health default settings.

File

health.install
View source
<?php

/**
 * @file
 * Sets up the health default settings.
 */

/**
 * Implements hook_install().
 */
function health_install() {

  // Set a random access key.
  variable_set('health_api_access_key', user_password(32));

  // Set the API to require HTTPS by default.
  variable_set('health_api_require_https', TRUE);

  // Set the admin user to get e-mails.
  variable_set('health_email_users', user_load(1)->mail);

  // Default subject line for the health status email.
  variable_set('health_email_subject', 'Health status for ' . variable_get('site_name'));

  // Set default e-mail frequency to never.
  variable_set('health_email_frequency', 'never');
}

Functions

Namesort descending Description
health_install Implements hook_install().