function securesite_install in Secure Site 8
Implements hook_install().
File
- ./
securesite.install, line 11 - Secure Site installation functions.
Code
function securesite_install() {
$config_securesite = \Drupal::config('securesite.settings');
$config_site = \Drupal::config('system.site');
$config_securesite
->set('securesite_digest_script', drupal_get_path('module', 'securesite') . '/digest_md5/digest_md5.php');
$config_securesite
->set('securesite_password_script', drupal_get_path('module', 'securesite') . '/digest_md5/stored_passwords.php');
$config_securesite
->set('securesite_realm', $config_site
->get('name'));
$config_securesite
->set('securesite_403', $config_site
->get('page.403'));
$config_securesite
->save();
}