diff options
-rw-r--r-- | CHANGELOG.txt | 2 | ||||
-rw-r--r-- | modules/block/block.admin.inc | 2 | ||||
-rw-r--r-- | modules/block/block.install | 18 |
3 files changed, 20 insertions, 2 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a312b6eac..0b3bd6216 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,8 @@ Drupal 7.33, xxxx-xx-xx (development version) ----------------------- +- Increased the maximum allowed length of block titles to 255 characters + (database schema change to the {block} table). - Removed the Field module's field_modules_uninstalled() function, since it did not do anything when it was invoked. - Added a "theme_hook_original" variable to templates and theme functions and diff --git a/modules/block/block.admin.inc b/modules/block/block.admin.inc index bd6179063..f0e999de8 100644 --- a/modules/block/block.admin.inc +++ b/modules/block/block.admin.inc @@ -272,7 +272,7 @@ function block_admin_configure($form, &$form_state, $module, $delta) { $form['settings']['title'] = array( '#type' => 'textfield', '#title' => t('Block title'), - '#maxlength' => 64, + '#maxlength' => 255, '#description' => $block->module == 'block' ? t('The title of the block as shown to the user.') : t('Override the default title for the block. Use <em>!placeholder</em> to display no title, or leave blank to use the default block title.', array('!placeholder' => '<none>')), '#default_value' => isset($block->title) ? $block->title : '', '#weight' => -19, diff --git a/modules/block/block.install b/modules/block/block.install index a78c885e7..d8eab185e 100644 --- a/modules/block/block.install +++ b/modules/block/block.install @@ -79,7 +79,7 @@ function block_schema() { ), 'title' => array( 'type' => 'varchar', - 'length' => 64, + '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.)', @@ -473,5 +473,21 @@ function block_update_7008() { } /** + * Increase {block}.title length to 255 characters. + */ +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, + ) + ); +} + +/** * @} End of "addtogroup updates-7.x-extra". */ |