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

Not sure how to search for an answer on this one...

For the version, I'm saying it's 4.7 because I just downloaded and installed today... but it could be 4.6. Either way, what happened just now was... :)

"Reset defaults" in settings not immediately updating elements in forms

Hello,

I'm trying to update buddylist.module to be 4.7 form api compliant. I've taken some initial steps on updating the admin->settings page to use the forms. Everything looks good, the data seems to be stored and used.

I am encountering one small bug, however. When I click "Reset to defaults", the page refreshes but the values in the forms stay the same. If I click away from the page and return the defaults have come back.

Is this an issue in my form code, or should I file a bug against something?

Thanks,

-Mark

Image Module not working with safe mode

File uploads (core module) are working fine. Uploading images with the image module only gives me the following error and a post without image: "Invalid argument supplied for foreach() in /export/www/students/projects/gamedevclub/modules/image/image.module on line 316."

Drupal 4.6
PHP Version 4.3.3
Apache
pgsql

I don't really understand what's going wrong. If only I had a more useful error to work with I might find out something more. I'm not good at php though.

If you need more info to answer my question, just let me know.

menu_set_location an tabs

Hi.
I've created a module which displays a node instead of term-listing. If i call it without menu-modification all is ok. The "view" and "edit" tabs are displayed and teh breadcrumb is set correct.
But if i use "menu_set_location" to activate the corresponding menu-item the tabs aren't displayed anymore.
How can I set the active menu-item and display the tabs?
I tried to add

$items[] = array(
                 'path' => 'node/'. $nd->nid, 
			   'title' => t('view'), 
			   'callback' => 'node_page', 
			   'access' => node_access('view', $nd), 
			   'type' => MENU_CALLBACK
			   );
$items[] = array(
                 'path' => 'node/'. $nd->nid .'/view', 
			   'title' => t('view'), 
			   'access' => node_access('view', $nd), 
			   'type' => MENU_DEFAULT_LOCAL_TASK, 
			   'weight' => -10
			   );
$items[] = array(
                 'path' => 'node/'. $nd->nid .'/edit', 
		           'title' => t('edit'), 
			   'callback' => 'node_page', 
			   'access' => node_access('update', $nd), 
			   'weight' => 1, 
			   'type' => MENU_LOCAL_TASK
			   );

but it do not work ("access denied", even if "'access' => 1"). Changing "MENU_DEFAULT_LOCAL_TASK" to "MENU_LOCAL_TASK" displays the node but without tabs :-{

Any suggestions?

best regards,

Stefan

Node Background

I want to make a module that allows the user to selcct the background image of a node.

This will by done by selecting the image from one in image.module (maybe using image assist - or something like that) and then write it out to a style tag when the node is viewed.

I have never written a module before (apart from the getting started thing in the handbook) so can anyone give me some ideas of how to go about it? I was looking at nodewords to see if I could hack it about a bit, but it's a bit too complex for my needs.

Change aggregator style

Hello

I want to change the

style for all the aggregator blocks. It's using "list-item" now, and i would like to change it to something different.
Can i do this ?

Thanks

Pages

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