function rabbit_hole_schema_alter in Rabbit Hole 7.2
Same name and namespace in other branches
- 6 rabbit_hole.install \rabbit_hole_schema_alter()
- 7 rabbit_hole.install \rabbit_hole_schema_alter()
Implements hook_schema_alter().
File
- ./
rabbit_hole.module, line 654 - Main module file for Rabbit Hole.
Code
function rabbit_hole_schema_alter(&$schema) {
// Get the Rabbit Hole fields.
$fields = rabbit_hole_schema_fields();
// Get the modules that are implementing hook_rabbit_hole(), and add the
// fields to the base table of that entity.
$modules = module_invoke_all('rabbit_hole');
foreach ($modules as $module => $info) {
$schema[$info['base table']]['fields'] += $fields;
}
}