- 165 reads
'tabset', ); $form['gctcenrollTab']['tab1'] = node_to_load(3401); $form['gctcenrollTab']['tab2'] = node_to_load(3403); //$form['gctcenrollTab']['tab3'] = node_to_load(3402); return tabs_render($form); } function node_to_load($nid, $title = NULL) { $node = node_load($nid); $output = node_view($node); if ( ! $title ) { $title = $node->title; } return array( '#type' => 'tabpage', '#title' => $title, '#content' => $output ); } print load_nodes_in_tabs(); ?>