You are here

function collapsiblock_schema_alter in Collapsiblock 7.2

Implements hook_schema_alter().

Other modules, such as i18n_block also modify the block database table.

3 calls to collapsiblock_schema_alter()
collapsiblock_install in ./collapsiblock.install
Implements hook_install().
collapsiblock_uninstall in ./collapsiblock.install
Implements hook_uninstall.
collapsiblock_update_7200 in ./collapsiblock.install
Transition to 7.x-2.x

File

./collapsiblock.install, line 45
Install hooks for Collapsiblock.

Code

function collapsiblock_schema_alter(&$schema) {
  if (isset($schema['block'])) {
    $schema['block']['fields']['collapsiblock_action'] = array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => 0,
      'description' => 'Integer containing the key for the collapse action.',
    );
  }
}