Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A block is described as a box on the page. A box is actually also a custom block. After some talk on IRC, to get this more straight, we should rename box to block_custom. This patch does this. It also changes the block.info description to take into account that $content is now a block on its own.
Comment | File | Size | Author |
---|---|---|---|
#9 | box-to-custom-block-3.patch | 3.26 KB | davyvdb |
#3 | box-to-custom-block-2.patch | 21.88 KB | davyvdb |
box-to-custom-block.patch | 21.4 KB | davyvdb | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedI think that would be a good clean-up. Haven't reviewed the patch yet.
Comment #3
davyvdb CreditAttribution: davyvdb commentedComment #4
ksenzeeInstalled this and banged around (I know, tests, I shouldn't have to, but still...) and it looks good. Read through the code and it looks good. ("Visual building blocks" is a good descriptor.) I think {block_custom} is a fine name. RTBC as far as I'm concerned.
Comment #5
webchickThis is one of my favourite patches in D7. :) Committed to HEAD!
This needs to be documented in the module upgrade guide: http://drupal.org/update/modules/6/7
Comment #6
Dave ReidThis upgrade path is going to fail because we are using the new table name in upgrades before system_update_7037(). Please don't change the table names before system_update_7037().
Comment #7
Dave ReidComment #8
eojthebraveI think this needs an update hook added to block.install to rename the box table to block_custom.
Comment #9
davyvdb CreditAttribution: davyvdb commentedThis should fix this. Thanks for the catch Dave!
Comment #10
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #11
davyvdb CreditAttribution: davyvdb commentedWe still need documentation. http://drupal.org/node/561970#comment-1982240
Comment #12
hass CreditAttribution: hass commented+
Comment #13
yrocq CreditAttribution: yrocq commentedDocumentation posted
#d7csmtl