You are here

function ds_extras_install in Display Suite 7

Same name and namespace in other branches
  1. 8.4 modules/ds_extras/ds_extras.install \ds_extras_install()
  2. 8.2 modules/ds_extras/ds_extras.install \ds_extras_install()
  3. 8.3 modules/ds_extras/ds_extras.install \ds_extras_install()
  4. 7.2 modules/ds_extras/ds_extras.install \ds_extras_install()

Implements hook_install().

File

modules/ds_extras/ds_extras.install, line 97
Install file.

Code

function ds_extras_install() {
  $schema['node_revision'] = array();
  ds_extras_schema_alter($schema);
  foreach ($schema['node_revision']['fields'] as $name => $spec) {
    db_add_field('node_revision', $name, $spec);
  }
  db_update('system')
    ->fields(array(
    'weight' => 2,
  ))
    ->condition('name', 'ds_extras')
    ->execute();
}