Theme node body with a template file in the feature
This code can be used to add tpl.php files instead of implementing theme functions to your feature
array(
'template' => 'myfeature-node-body',
'arguments' => array('node' => null),
),
);
}
/**
* Implementation of hook_nodeapi().
*/
function myfeature_nodeapi(&$node, $op, $a3, $a4) {
if ($node->type == 'mytype') {
switch($op) {
case 'view':
$node->content['body'] = array(
'#value' => theme('myfeature-node-body', $node),
'#weight' => 10,
);
break;
case 'load':
//add any extra data your template needs to $node here
break;
}
}
}