diff options
author | David Rothstein <drothstein@gmail.com> | 2014-11-02 14:47:21 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-11-02 14:47:21 -0500 |
commit | f68c6ce8495dbdf396676da1e323339b725b0d13 (patch) | |
tree | ecdba29eb9341b97a729d25bfcc71a9ce208f469 /modules/block | |
parent | 8d5c1bf0220a687c36467c0c311abc341589c517 (diff) | |
download | brdo-f68c6ce8495dbdf396676da1e323339b725b0d13.tar.gz brdo-f68c6ce8495dbdf396676da1e323339b725b0d13.tar.bz2 |
Issue #466576 by gagarine, jackbravo, tim.plunkett, sheise, Rob C, jamesm6162 | daemon: Increased the maximum allowed length of block titles to 255 characters.
Diffstat (limited to 'modules/block')
-rw-r--r-- | modules/block/block.admin.inc | 2 | ||||
-rw-r--r-- | modules/block/block.install | 18 |
2 files changed, 18 insertions, 2 deletions
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". */ |