You are here

function block_class_schema_alter in Block Class 7.2

Implements hook_schema_alter().

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

3 calls to block_class_schema_alter()
block_class_install in ./block_class.install
Implements hook_install().
block_class_uninstall in ./block_class.install
Implements hook_uninstall().
block_class_update_7103 in ./block_class.install
Migration from block_class table to new field css_class in core block table.

File

./block_class.install, line 40
Install, update and uninstall functions for the block_class module.

Code

function block_class_schema_alter(&$schema) {
  if (isset($schema['block'])) {
    $schema['block']['fields']['css_class'] = array(
      'type' => 'varchar',
      'length' => 255,
      'not null' => TRUE,
      'default' => '',
      'description' => 'String containing the classes for the block.',
    );
  }
}