Hi,
I'm testing tabs (from jstools). This is the example given for readme.txt file:
$tabs .= theme('tabs_tab_page', t('First tab'), t('This is the first tabbed page'));
$tabs .= theme('tabs_tab_page', t('Second tab'), t('This is the second tabbed page'));
$output = theme('tabs_tabset', 'example', $tabs);
print $output;
...but, how could I insert any snippet like this one in one of these two tabs?
/**
* This php snippet displays a themed summary list of vocabulary term titles(x) from a specific category
* Where (x) is the number of nodes in each term.
* The Snippet ignores terms with no nodes.
*
* Tested and works with Drupal 4.6
* To change the vocabulary references, change the $vocabulary_id value to suit.
*/
$vocabulary_id = 4;
$result = db_query("SELECT d.tid, d.name, MAX(n.created) AS updated, COUNT(*) AS count FROM {term_data} d INNER JOIN {term_node} USING (tid) INNER JOIN {node} n USING (nid) WHERE d.vid = $vocabulary_id AND n.status = 1 GROUP BY d.tid, d.name ORDER BY updated DESC, d.name");
$items = array();
while ($category = db_fetch_object($result)) {
$items[] = l($category->name .' ('. $category->count .')', 'taxonomy/term/'. $category->tid) .'<br />'. t('%time ago', array('%time' => format_interval(time() - $category->updated)));
}
print theme('item_list', $items);
));
$output = theme('tabs_tabset', 'example', $tabs);