My issue with hook_form when creating my own module

so here is my hook form for a module i'm making with a node called conferences, when i call http://mysite.com/node/add/conferences i get the form to display and can add the node. However, after i have submitted the node and go to edit i get the following error:

warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in /path/to/drupal/install/modules/node.module on line 1665.

i've done some searching and as far as i can tell this is the hook that should be called, however it doesn't get called or for some reason no array goes back to the calling function and therefore i get this warning. I'm fairly new to drupal, even newer to writing my own module. I'd appreciate any help, or anyone that might be able to point me in the right direction. If you need to know anything else about my code let me know.


function conferences_form(&$node, &$param)
{
//Conference name / Journal Name
$form['title'] = array(
'#type' => 'textfield',
'#title' => t('conference/journal name'),
'#required' => TRUE,
'#defualt_value' => $node->title,
'#weight' => -5,
'#description' => t('Full name of conference or journal')
);

//conference short name
$form['shortname'] = array(

idealuceonline.it

We want to show you our Drupal-4.7 powered site, Idealuceonline.it, one of the most important italian's source regarding 'The world of Light'. :)

You can see it on: www.idealuceonline.it

Forums Login and Possible Posting Bug

HI again,

1. After I login to my site from the forums page, my account information page is loaded. I would rather end up on the page that adds a new post to the forum. Where would I start hacking? Or, is there a module to fix this behavior?

Anyway to remove drupalness from GET/POST?

I'm writing a module that just creates a block with a form in it. The form submits to another site via #action set on the form. The remote processing is expecting plain form names, but when my submission gets to the processor the params are surrounded with "edit[...]".

Is there anyway to remove that stuff?

I also don't have access to http_post_data or http_post_fields.

Thanks.

My form looks like this:

How To Install Views Module

I've tried to install the Views module in both 4.7.x and 5.x and can't get either one to work. All I get are blank screens and a completely blank website when I activate the module. The drupal site won't work at all until I delete the views modules files and folders. I must be doing something wrong. For 5.x I copied the unpacked download folder containing views, po, folders and other files to sites/all/modules. The views check boxes then come up in the modules settings page in drupal, but when I activate any of them the site just goes blank.

Module for inviting/Recommend nodes ?

What i need is a module like 'invite' but instead of inviting a friend to join my site, i'd like to invite to see a particular node.
For example, when i read a node, if y like to recommend it to somebody, just clicking on a link, enter the email address, and then a mail containing the url will be sent.
Thanks

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x