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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dries’s picture

Issue tags: +Favorite-of-Dries

I think that would be a good clean-up. Haven't reviewed the patch yet.

Status: Needs review » Needs work

The last submitted patch failed testing.

davyvdb’s picture

Status: Needs work » Needs review
FileSize
21.88 KB
ksenzee’s picture

Status: Needs review » Reviewed & tested by the community

Installed 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.

webchick’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs documentation

This 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

Dave Reid’s picture

This 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().

Dave Reid’s picture

Category: task » bug
Priority: Normal » Critical
eojthebrave’s picture

I think this needs an update hook added to block.install to rename the box table to block_custom.

davyvdb’s picture

Status: Needs work » Needs review
FileSize
3.26 KB

This should fix this. Thanks for the catch Dave!

Dries’s picture

Status: Needs review » Fixed

Committed to CVS HEAD. Thanks.

davyvdb’s picture

Category: bug » task
Priority: Critical » Normal
Status: Fixed » Needs work
hass’s picture

+

yrocq’s picture

Status: Needs work » Fixed
Issue tags: -Needs documentation

Status: Fixed » Closed (fixed)
Issue tags: -Favorite-of-Dries

Automatically closed -- issue fixed for 2 weeks with no activity.