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

Theme_button function bug

I found a bug in the theme_button function in form.inc at line 964

i change where puts $element['#button_type'] for $element['#type'], if you don't make that the class is empty like class="form- "

If it isn't a bug sorry for the problems.

What is the benefit enabling taxonomy wrapper module with forums?

Category is a superb module as those creating containers and categories already know. I got a new site where I use category for, well, categorizing ecommerce products. Benefits here are obvious. There is also a forum where the structure is already in place. I realize I can replace original taxonomy & book functionalities by enabling corresponding wrappers, but it is still unclear to me, what are the benefits I get if the forum works through the taxonomy wrapper? Couldn't find the answer at http://category.greenash.net.au.

Help desperately needed with menus

OK ... I've burned half a day trying to get this to work. It must be something easy that I'm missing. But I give up.

I'm writing a module which talks to another database ("facilities"). I need to view, comment, and edit entries from this other database ... each of these will be a LOCAL_TASK ... View will be the default.

I can get the menu to appear and hook into the right callbacks with the following code:

		$items[] = array('path' => 'facility',
		'title' => t('Facility Profile'),
		'callback' => 'facility_page',
		'access' => user_access('access content'),
		'type' => MENU_SUGGESTED_ITEM);
		
		$items[] = array('path' => 'facility/',
		'title' => t('View'),
		'callback' => 'facility_page',
		'access' => user_access('access content'),
		'type' => MENU_DEFAULT_LOCAL_TASK,
		'weight' => -10); 
		
		$items[] = array('path' => 'facility/'. arg(1) .'/edit',
		'title' => t('Edit'),
		'callback' => 'facility_edit',
		'access' => user_access('access content'),
		'type' => MENU_LOCAL_TASK);
		
		$items[] = array('path' => 'facility/'. arg(1) .'/feedback',
		'title' => t('Feedback'),
		'callback' => 'facility_feedback',
		'access' => user_access('access content'),
		'type' => MENU_LOCAL_TASK);

The problem is that arg(1) keeps getting filled in with the string "modules" in the menu links for the "feedback" and "edit" menu tabs. And the node ID number never appears in the menu tab link for the default "View" tab.

mailhandler and listhandler for 4.7

Hi. I want to get mailhandler and listhandler functional for 4.7. I use Apache2 , Mysql 4.1 . I'm new to Drupal. My site needs these badly. For me, these seem to be very close to functioning. I've searched and can not find any recent activity on these . I'm posting here in hopes of someone already having patches for these or is working on this and could use help or having good advice or wanting to help.

can't use ?foo=bar in a module....

so I wanted to remove some of my code from a module and put it in another php file and include it in the main module file like this include('file.php?foo=bar'); so I can pass a variable named foo into file.php

when I try this I get a No such file or directory warning, but when I change it to: include('file.php'); it's works fine but then obviously there's no variable getting passed

it seems that Drupal won't let the module use a url query string for some reason, is there any way around this?

can't use ?foo=bar in a module....

so I wanted to remove some of my code from a module and put it in another php file and include it in the main module file like this include('file.php?foo=bar'); so I can pass a variable named foo into file.php

when I try this I get a No such file or directory warning, but when I change it to: include('file.php'); it's works fine but then obviously there's no variable getting passed

it seems that Drupal won't let the module use a url query string for some reason, is there any way around this?

Pages

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