hook_block_view_MODULE_DELTA_alter(&$data, $block)Perform alterations to a specific block.
Modules can implement hook_block_view_MODULE_DELTA_alter() to modify a specific block, rather than implementing hook_block_view_alter().
Note that this hook fires before hook_block_view_alter(). Therefore, all implementations of hook_block_view_MODULE_DELTA_alter() will run before all implementations of hook_block_view_alter(), regardless of the module order.
@see hook_block_view()
$data An array of data, as returned from the hook_block_view() implementation of the module that defined the block:
$block The block object, as loaded from the database, having the main properties:
modules/block/block.api.php, line 216
<?php
function hook_block_view_MODULE_DELTA_alter(&$data, $block) {
// This code will only run for a specific block. For example, if MODULE_DELTA
// in the function definition above is set to "mymodule_somedelta", the code
// will only run on the "somedelta" block provided by the "mymodule" module.
// Change the title of the "somedelta" block provided by the "mymodule"
// module.
$data['subject'] = t('New title of the block');
}
?>