Fichier

./quicktabs.module, line 444

Code

function _quicktabs_build_content_node($tab, $hide_empty = FALSE) {
    $output = array();
    if (isset($tab['nid'])) {
        $node = node_load($tab['nid']);
        if (!empty($node)) {
            if (node_access('view', $node)) {
                $buildmode = $tab['teaser'] ? 'teaser' : 'full';
                $nstruct = node_view($node, $buildmode);
                if ($tab['hide_title']) {
                    $nstruct['#node']->title = NULL;
                }
                $output = $nstruct;
            }
            elseif (!$hide_empty) {
                $output['#markup'] = theme('quicktabs_tab_access_denied', array(
                    $tab,
                ));
            }
        }
    }
    return $output;
}