function better_watchdog_ui_entity_entity_property_info_alter in Better Watchdog UI 7.2
Same name and namespace in other branches
- 8 better_watchdog_ui_entity/better_watchdog_ui_entity.module \better_watchdog_ui_entity_entity_property_info_alter()
- 7.3 better_watchdog_ui_entity/better_watchdog_ui_entity.module \better_watchdog_ui_entity_entity_property_info_alter()
- 7 better_watchdog_ui_entity/better_watchdog_ui_entity.module \better_watchdog_ui_entity_entity_property_info_alter()
Implements hook_entity_property_info_alter().
File
- better_watchdog_ui_entity/
better_watchdog_ui_entity.module, line 146 - Provides a basic wrapper to database log entries, so they can be accessed as entities.
Code
function better_watchdog_ui_entity_entity_property_info_alter(&$info) {
$properties =& $info['better_watchdog_ui_watchdog']['properties'];
$properties['uid'] = array(
'label' => t('User'),
'type' => 'user',
'description' => t('The users.uid of the user who triggered the event.'),
'required' => TRUE,
'schema field' => 'uid',
);
$properties['type'] = array(
'label' => t('Type'),
'type' => 'text',
'description' => t('Type of log message, for example "user" or "page not found."'),
'schema field' => 'type',
);
$properties['message'] = array(
'label' => t('Message'),
'type' => 'text',
'description' => t('Text of log message to be passed into the t() function.'),
'schema field' => 'message',
);
$properties['severity'] = array(
'label' => t('Severity'),
'type' => 'integer',
'description' => t('The severity level of the event; ranges from 0 (Emergency) to 7 (Debug)'),
'schema field' => 'severity',
);
$properties['link'] = array(
'label' => t('Link'),
'type' => 'uri',
'description' => t('Link to view the result of the event.'),
'schema field' => 'link',
);
$properties['location'] = array(
'label' => t('Location'),
'type' => 'uri',
'description' => t('URL of the origin of the event.'),
'schema field' => 'location',
);
$properties['referer'] = array(
'label' => t('Referer'),
'type' => 'uri',
'description' => t('URL of referring page.'),
'schema field' => 'referer',
);
$properties['hostname'] = array(
'label' => t('Hostname'),
'type' => 'text',
'description' => t('Hostname of the user who triggered the event.'),
'schema field' => 'hostname',
);
$properties['timestamp'] = array(
'label' => t('Date'),
'type' => 'integer',
'description' => t('Unix timestamp of when event occurred.'),
'schema field' => 'timestamp',
);
}