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

In many modules under 4.7 links are not working

I have installed Drupal 4.7 and in many modules for Drupal 4.7 (audio, events, views, ....) links are not working. When I looked to source code and changed this code:

  $links[] = l(t('download audio file'), $node->url_download, NULL);
  $links[] = t('%download_count downloads', array('%download_count' =>   $node->audio_fileinfo['download_count']));

to this code:

new drupal module - need 20 beta testers

Hi Drupal'ers,

Please see post for details of module:
http://drupal.org/node/70417

Thanks

E-Commerce install - shipping has undefined functions

Just did a fresh install of Drupal and the E-Commerce moduel. All seems to be working apart from the shipping section. If I checkout I get an undefined function store_search_misc() and if I go to the shipping settings in get an undefined function store_build_countries().

Does anyone have an idea?

Loading bootstrap.inc from a PHP AJAX handler in the modules directory?

So I have a php AJAX handler in a module that I wrote that needs access to the drupal databases. I can't seem to load the drupal_bootstrap() from the modules directory though. If I move the handler into the root drupal directory it works, but it seems that the relitive links to the other includes within the bootstrap process are running relitive to the handler instead of the root index.php file. Here is the error message:

menu_get_menu($pid);

Im trying to use this function to generate a custom menu. It is almost 100% what I want but I dont think it has the ability to tell me if a menu is expanded or not. IE: It gives me all the children, the whole menu. I only want the visible layer. Is there a better function for me to use?

multipage forms and required nodeapi elements

I've got a multipage form that I have working pretty well so far. However, I am using a nodepai module (location) to add form elements that I want to show on the second screen. I want site admins to be able to determine which address components are required, but the handbook says to not set the '#required' flag in hook_form. The following code in mymodule_form_alter does not seem to work:

$form['location']['city']['#required'] = FALSE; 

Note that mymodule's name starts with an "s" and comes after location.

Pages

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