function better_statistics_schema_alter in Better Statistics 6
Same name and namespace in other branches
- 7 better_statistics.module \better_statistics_schema_alter()
Implements hook_schema_alter().
Reflects the changes we made at install-time in the accesslog schema.
File
- ./
better_statistics.module, line 14 - Drupal hook implementations for the Better Statistics module.
Code
function better_statistics_schema_alter(&$schema) {
// Fetch the fields defined by this module.
module_load_include('inc', 'better_statistics', 'better_statistics.helpers');
$fields = _better_statistics_define_fields();
// For each field defined, add it to the schema.
foreach ($fields as $name => $field) {
$schema['accesslog']['fields'][$name] = $field;
}
}