drupal - Extending Context List module to show names of blocks/nodes -
i did search on this, found nothing , custom module. called context list
named , extends context list
module blocks show titles instead of node or block number. project maintainer created 2 hooks me, have not been able figure out how working. here function:
function context_list_named_context_list_reaction_block_name(&$block_name, &$details) { if(preg_match('/^nodeblock:(\d+)$/', $block_name)) { $block = block_load('nodeblock',$details->delta); $block_name = $block->subject; //$block_name = ; } elseif(preg_match('/^block:(\d+)$/', $block_name)) { $block = block_load('block',$details->delta); $block_name = $block->subject; //return $block_name; } $block_name = 'test'; }
so can see trying set $block_name = 'test';
started, not seeing change on context list page
. (context block info module offers same type of list node/block
numbers well.)
Comments
Post a Comment