You are here

function health_install in Health Status 7

Implements hook_install().

File

./health.install, line 10
Sets up the health default settings.

Code

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');
}