function theme_noderelationships_noderef_page_tabs in Node Relationships 6
Render search/create tabs.
2 theme calls to theme_noderelationships_noderef_page_tabs()
- noderelationships_noderef_page in ./
noderelationships.pages.inc - Menu callback; Search or Create and reference.
- _noderelationships_child_node_form_pre_render in ./
noderelationships.pages.inc - Pre-render handler for child node form.
File
- ./
noderelationships.pages.inc, line 534 - Implementation of user land pages.
Code
function theme_noderelationships_noderef_page_tabs($mode, $referrer_type, $field_name) {
$options = array(
'attributes' => array(
'class' => 'modalframe-exclude',
),
);
$query = noderelationships_querystring();
if (!empty($query)) {
$options['query'] = $query;
}
$output = '<div class="noderelationships-noderef-page-tabs"><ul>';
$output .= '<li' . ($mode == 'search' ? ' class="active"' : '') . '>' . l(t('Search and reference'), 'noderelationships/search/' . $referrer_type . '/' . $field_name, $options) . '</li>';
$output .= '<li' . ($mode == 'create' ? ' class="active"' : '') . '>' . l(t('Create and reference'), 'noderelationships/create/' . $referrer_type . '/' . $field_name, $options) . '</li>';
$output .= '</ul></div>' . "\n";
return $output;
}