Hi, sorry for my bad english.

I'm new to drupal, but I've started to explore some internals.

If I am not mistaken, when I install a module, drupal_flush_all_caches() is called and block_flush_caches() iterates between active themes and call _block_rehash().

_block_rehash() invoke hook_block_info() for module I've activated.

Inside this module_block_info() I'm need to know what theme request _block_rehash(), because I've to make different blocks for different themes.

CommentFileSizeAuthor
#1 1043256-add_argument.patch618 bytesrobertom

Comments

robertom’s picture

StatusFileSize
new618 bytes
franz.glauber’s picture

What needs to be different? It doesn't sound appropriate to mix content & theme. Does content in the block changes?

franz’s picture

sub (commented with wrong account)

Version: 7.0 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.