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

LAsan’s picture

Version: x.y.z » 7.x-dev

Feature request go to cvs.

damien tournoud’s picture

Status: Active » Closed (won't fix)

This is easily possible since at least D6.