Our clients use the Bean module to create custom blocks, and then place the blocks on the site using the Context module. There are two issues they want resolved.

First, there are many times where they have blocks of different bean types with the same name. For example, there is a "company" bean type and a "sponsor" bean type. "Procter & Gamble" can be both a company and a sponsor. It's impossible for the client to know which bean is being selected in Context (or the Block module, for that matter), because no additional information is provided.

Second, the use of check_plain causes html characters to be displayed. Instead of the bean being listed as "Procter & Gamble" in the Context and Block modules, the client sees "Procter & Gamble".

We've created a small patch that resolves both of these in hook_block_info. I'll post in a few minutes for review.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ron_s created an issue. See original summary.

ron_s’s picture

Status: Active » Needs review
FileSize
821 bytes

Please review the attached patch. Thanks.