function cpn_install in Code per Node 6
Same name and namespace in other branches
- 7 cpn.install \cpn_install()
Implementation of hook_install().
File
- ./
cpn.install, line 46 - Installation, schema and update hook implementations.
Code
function cpn_install() {
drupal_install_schema('cpn');
// Alter blocks table, as defined in hook_schema_alter().
$ret = array();
$schema = array();
cpn_schema_alter($schema);
foreach ($schema['blocks']['fields'] as $name => $spec) {
db_add_field($ret, 'blocks', $name, $spec);
}
}