You are here

function block_country_schema_alter in Block Country 7

Implements hook_schema_alter().

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

2 calls to block_country_schema_alter()
block_country_install in ./block_country.install
Implements hook_install().
block_country_uninstall in ./block_country.install
Implements hook_uninstall().

File

./block_country.install, line 86
Schema definitions install/update/uninstall hooks.

Code

function block_country_schema_alter(&$schema) {
  if (isset($schema['block'])) {
    $schema['block']['fields']['country_visiblility'] = array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => 1,
      'description' => 'visibility on all countries.',
    );
  }
}