function block_token_schema_alter in Block Token 7
Implements hook_schema_alter().
Other modules, such as i18n_block also modify the block database table.
2 calls to block_token_schema_alter()
- block_token_install in ./
block_token.install - Implements hook_install().
- block_token_uninstall in ./
block_token.install - Implements hook_uninstall().
File
- ./
block_token.install, line 45 - Install, update and uninstall functions for the block_token module.
Code
function block_token_schema_alter(&$schema) {
if (isset($schema['block'])) {
$schema['block']['fields']['block_token'] = array(
'description' => 'Boolean indicating whether the Block Token should be created or not.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
);
}
}