As the "Author information" profile block depends on the node view, it might be useful to have different block themes for node types. The theme_profile_block() function should also have $node as parameter, so it can search for specific node type theme and show the profile block using that theme function. If node type theme function is not found, the function theme_profile_block() will be used. Here is a possible solution:
function theme_profile_block($account, $fields = array(), $node) {
$nodetype_function = 'theme_'.$node->type.'_profile_block';
if (function_exists($nodetype_function)) return $nodetype_function($account, $fields, $node);
..................
}
Comments
Comment #1
LAsan commentedFeature request go to cvs.
Comment #2
damien tournoud commentedThis is easily possible since at least D6.