function rabbit_hole_install in Rabbit Hole 6
Same name and namespace in other branches
- 7 rabbit_hole.install \rabbit_hole_install()
Implements hook_install().
File
- ./
rabbit_hole.install, line 33 - Install, update and uninstall functions for Rabbit Hole.
Code
function rabbit_hole_install() {
// Add our fields to the {node} table.
$schema['node'] = array();
rabbit_hole_schema_alter($schema);
$ret = array();
foreach ($schema['node']['fields'] as $name => $spec) {
db_add_field($ret, 'node', $name, $spec);
}
}