function ds_extras_install in Display Suite 7.2
Same name and namespace in other branches
- 8.4 modules/ds_extras/ds_extras.install \ds_extras_install()
- 8.2 modules/ds_extras/ds_extras.install \ds_extras_install()
- 8.3 modules/ds_extras/ds_extras.install \ds_extras_install()
- 7 modules/ds_extras/ds_extras.install \ds_extras_install()
Implements hook_install().
File
- modules/
ds_extras/ ds_extras.install, line 11 - Install file.
Code
function ds_extras_install() {
db_update('system')
->fields(array(
'weight' => 2,
))
->condition('name', 'ds_extras')
->execute();
$schema['node_revision'] = array();
ds_extras_schema_alter($schema);
foreach ($schema['node_revision']['fields'] as $name => $spec) {
db_add_field('node_revision', $name, $spec);
}
}