2010-08-18 01:54:36 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Install, update and uninstall functions for the syslog module.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2012-07-28 16:35:17 +00:00
|
|
|
* Implements hook_install().
|
2010-08-18 01:54:36 +00:00
|
|
|
*/
|
2012-07-28 16:35:17 +00:00
|
|
|
function syslog_install() {
|
|
|
|
// The default facility setting depends on the operating system, so it needs
|
|
|
|
// to be set dynamically during installation.
|
2013-09-16 03:58:06 +00:00
|
|
|
\Drupal::config('syslog.settings')->set('facility', defined('LOG_LOCAL0') ? LOG_LOCAL0 : LOG_USER)->save();
|
2010-08-18 01:54:36 +00:00
|
|
|
}
|