label); $tabs = array(); foreach ($share->tabs as $tab) { if ($tab['enabled']) { $tabs[$tab['module']] = $share->render_tab($tab['module'], $node); } } $content = node_view($node, FALSE, FALSE, FALSE); return theme('share_widget_page', $tabs, $content); } /******************************************************************************* * Theme Functions ******************************************************************************/ function theme_share_widget_page($tabs, $content) { drupal_add_css(drupal_get_path('module', 'share') .'/css/share_page.css'); $output = '
'; $output .= $content; return $output; }