2
// $Id: dblog.install,v 1.6.2.1 2009/01/06 15:46:36 goba Exp $
5
* Implementation of hook_install().
7
function dblog_install() {
9
drupal_install_schema('dblog');
13
* Implementation of hook_uninstall().
15
function dblog_uninstall() {
17
drupal_uninstall_schema('dblog');
21
* Implementation of hook_schema().
23
function dblog_schema() {
24
$schema['watchdog'] = array(
25
'description' => 'Table that contains logs of all system events.',
30
'description' => 'Primary Key: Unique watchdog event ID.',
36
'description' => 'The {users}.uid of the user who triggered the event.',
43
'description' => 'Type of log message, for example "user" or "page not found."',
49
'description' => 'Text of log message to be passed into the t() function.',
55
'description' => 'Serialized array of variables that match the message string and that is passed into the t() function.',
63
'description' => 'The severity level of the event; ranges from 0 (Emergency) to 7 (Debug)',
70
'description' => 'Link to view the result of the event.',
75
'description' => 'URL of the origin of the event.',
82
'description' => 'URL of referring page.',
89
'description' => 'Hostname of the user who triggered the event.',
95
'description' => 'Unix timestamp of when event occurred.',
98
'primary key' => array('wid'),
99
'indexes' => array('type' => array('type')),