You are here

function block_attributes_schema_alter in Block Attributes 7

Implements hook_schema_alter().

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

2 calls to block_attributes_schema_alter()
block_attributes_install in ./block_attributes.install
Implements hook_install().
block_attributes_uninstall in ./block_attributes.install
Implements hook_uninstall().

File

./block_attributes.install, line 45
Install, update and uninstall functions for the block_attributes module.

Code

function block_attributes_schema_alter(&$schema) {
  if (isset($schema['block'])) {
    $schema['block']['fields']['options'] = array(
      'description' => 'A serialized array of options to be passed to the block template, such as HTML attributes.',
      'type' => 'blob',
      // If we really needed the value to be not null, we could consider
      // providing a 'default' value as a serialized empty array.
      'not null' => FALSE,
      'translatable' => TRUE,
    );
  }
}