From f68c6ce8495dbdf396676da1e323339b725b0d13 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Sun, 2 Nov 2014 14:47:21 -0500 Subject: Issue #466576 by gagarine, jackbravo, tim.plunkett, sheise, Rob C, jamesm6162 | daemon: Increased the maximum allowed length of block titles to 255 characters. --- modules/block/block.admin.inc | 2 +- modules/block/block.install | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'modules/block') 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 !placeholder 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, will remove the title, text will cause block to use specified title.)', @@ -472,6 +472,22 @@ function block_update_7008() { db_drop_field('block', 'throttle'); } +/** + * 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, will remove the title, text will cause block to use specified title.)', + 'translatable' => TRUE, + ) + ); +} + /** * @} End of "addtogroup updates-7.x-extra". */ -- cgit v1.2.3