You are here

function block_update_7009 in Drupal 7

Increase {block}.title length to 255 characters.

Related topics

File

modules/block/block.install, line 478
Install, update and uninstall functions for the block module.

Code

function block_update_7009() {
  db_change_field('block', 'title', 'title', array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '',
    'description' => 'Custom title for the block. (Empty string will use block default title, <none> will remove the title, text will cause block to use specified title.)',
    'translatable' => TRUE,
  ));
}