function _noderelationships_nodeapi_view in Node Relationships 6
Implementation of hook_nodeapi('view').
Parameters
$referred_node:
$region_settings:
1 call to _noderelationships_nodeapi_view()
- noderelationships_nodeapi in ./
noderelationships.module - Implementation of hook_nodeapi().
File
- ./
noderelationships.pages.inc, line 40 - Implementation of user land pages.
Code
function _noderelationships_nodeapi_view($referred_node, &$region_settings) {
$content = noderelationships_backref_build_content($referred_node, $region_settings);
if (!empty($content)) {
$referred_node->content['noderelationships'] = array(
'#type' => 'fieldset',
'#title' => t('Related content'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#weight' => noderelationships_get_element_weight($referred_node->type),
'content' => $content,
);
}
}