function ds_extras_schema_alter in Display Suite 7
Same name and namespace in other branches
- 7.2 modules/ds_extras/ds_extras.install \ds_extras_schema_alter()
Implements hook_schema_alter().
1 call to ds_extras_schema_alter()
- ds_extras_install in modules/
ds_extras/ ds_extras.install - Implements hook_install().
File
- modules/
ds_extras/ ds_extras.install, line 138 - Install file.
Code
function ds_extras_schema_alter(&$schema) {
// Add a field ds_switch to the node_revision table in order
// to store the name of view mode to switch to.
if (isset($schema['node_revision'])) {
$schema['node_revision']['fields']['ds_switch'] = array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
);
}
}