function better_statistics_schema_alter in Better Statistics 7
Same name and namespace in other branches
- 6 better_statistics.module \better_statistics_schema_alter()
Implements hook_schema_alter().
Reflects the customizations chosen by the user in the schema.
File
- ./
better_statistics.module, line 64 - Drupal hook implementations for the Better Statistics module.
Code
function better_statistics_schema_alter(&$schema) {
// Fetch the fields defined by this module.
$fields = variable_get('better_statistics_fields', better_statistics_get_default_fields());
// For each field defined, add it to the schema.
foreach ($fields as $field => $data) {
$schema['accesslog']['fields'][$field] = $data['schema'];
}
}