This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Modify contrib module to list nodes of child terms

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();

Copyright module needs an upgrade to 4.7

I've already tried to resurrect the module for 4.7. I have detailed my efforts to convert the module to the new forms API here:

http://drupal.org/node/19061

However, there are problems and I'm no coder. I'm guessing, however, that the fixes for this somewhat simple module would be a walk in the park for someone. I can create the patch, if someone wants to post the changes to the code. Thanks again for any help on this one...

Allow multiple accounts from one email address?

Is there a way to allow more than 1 account with one email address?
I saw in node 15578 a suggestion for how to possibly hack this with 4.6. Now that 4.7 is out, I thought I'd raise the question and see if it's easier in 4.7 (or even has a setting)

API docs. Drupal functions that start with an underscore -- what does this mean?

I am reading the Drupal api docs. I'm looking under functions. At the end there are a lot of functions that start with an underscore. Some of them (all?) seem to be something called "helper functions." I've looked in my php books, searched drupal.org and on Google for "helper functions" mixed with "underscore" and "php." Came up with no answers. What's special about the underscore and functions that start with it? What does the underscore mean?

Help with a File List Page

I would like to create a page that displays a list of files for users to download, print, etc. It's a basic list, but I'm trying to make this really, really simple for the content admin who could use simple forms much easier than having to type in the html for the page.

I just need a simple list in the content section of the page

Example File
Example File
Example File

Issue with gallery 2 embedded

So i got the gallery 2 up and running in my drupal directory...I also installed the g2 module that allows me to display random images in a block. My problem is that the block links to a nonexistant URL. Any suggestions.

http://www.gilsmethod.com

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions