By lphm on
Hi,
(Considere Planes is my module)
I develop a module who it has 2 node types. I write correctly node_info hook and I use switch...case to generate form into planes_form(&$node) on $node->type.
My two types names are:
- planes
- planes_fields
But when I go to edit page, this error goes :
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'planes_node_form' was given in /.././///
Maybe I don't use correct method when a module has many nodes types.
Thanks for your help.
Comments
You should be able to do it
You should be able to do it like this:
Then in your hook_form(). Have:
I think, I am new to Drupal.
Action Medical Research - www.action.org.uk
James T
Action Medical Research - www.action.org.uk
Good.
Your response help me :).
Thanks.