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.
CTools implement a plugin for blocks in order to enable block as panes.
This implementation set the icon and category for all blocks created by system who doesn't implement the hook hook_ctools_block_info, the problem I found is you can't modify this block panes so move for instance to your own categories or change any other values without hacking CTools module.
So I want to propose a new hook to enable the option to alter all block_info of CTools before to be process
Comment | File | Size | Author |
---|---|---|---|
#1 | allow_alter_block_info-2398371-1.patch | 1.1 KB | -enzo- |
Comments
Comment #1
-enzo- CreditAttribution: -enzo- commentedI did an implementation for a new hook to enable used change block_info implementation to avoid hack CTools module, please consider to include in next release.
Let me show you the hook hook_ctools_block_info_alter API
Comment #2
steven.itterly CreditAttribution: steven.itterly commentedThis is very necessary, where do we stand on this?
Comment #3
brockfanning CreditAttribution: brockfanning commentedThis still applies, and is working for me. Thank you!
Comment #4
darrenwh CreditAttribution: darrenwh as a volunteer and at Investis Digital commentedA few coding issues.
There must be exactly one blank line before the tags in a doc comment.
Remove & signs don't need to part of comments
Correct indenting as per DCS
276 parameter comment needs 3 spaces
Even though this is an example comment's should still have a period at end.