I am new to Drupal and struggling with the method for passing URL variables. I've read the Menu System chapter in Pro Drupal 7 Development and browsed the online documentation - they are helpful but I haven't found the complete answer.
I have created a module that creates two blocks in a basic page (node/11):
Sidebar one block: is a list of names, each name is a link with a url path node/11/userid,
where the value of userid is the variable to be passed.
Main content block: this block will perform processing using the value of the userid
and display results.
When the page is initially loaded, the main content area is some default stuff. When the user clicks a name in the Sidebar on block, the page is to be reloaded with the Main content block repopulated based on the value of the userid.
So far the basic blocks are displaying fine. The list of names is fine and default text in the main content block is correct. However, I've tried several variations of passing the variable in the URL and receiving it in the module. The module, for the current attempt, is shown below (the details of the hook_block_contents are not shown).
The URL for the link is: example.com/node/11/12345,
where "12345" is the test value I'm attempting to pass as the variable $memid in the module.
<?php
/**
* @file
* Create block to display list of family members
*/
/**