I am trying to get the term extensions for flexinode to work with Drupal 4.7. The only trouble I'm having is that the code will only list nodes for the parent term, and not for its children. I need a way to modify this code so that selecting a parent term in the URL will also list the nodes of child terms. Thanks for any help on this: the module is quite small and seems simple enough.
/**
* Implementation of hook_help().
*/
function flexinode_terms_extension_help($section) {
switch ($section) {
case 'admin/modules#description':
return t('An extension to the flexinode module allowing table views by taxonomy term as well as by type.');
}
}
function flexinode_terms_extension_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array('path' => 'flexinode/termstable', 'title' => t('tabular view'),
'callback' => 'flexinode_terms_extension_page_table', 'access' => user_access('access content'),
'type' => MENU_CALLBACK);
}
return $items;
}
function flexinode_terms_extension_page_table($ctype_id = 0) {
// badness:
$term_id = arg(3);
if (!$ctype_id || !$term_id) {
drupal_not_found();
exit;
}
$output = '';
$ctype = flexinode_load_content_type($ctype_id);
// Build the query.
$fields_to_select = array();