Posted by Castell on March 18, 2010 at 8:59pm
Hey guys,
i need to hook the insert event of another node type than is specified in my module,
and i read that hook_nodeapi is the only way to do that.
But: although my server is running php5 (at least it says so),
the using of the nodeapi hook creates a blank page.
Is there any other way to get this insert hook working?
Thanks in advance,
Castell
Comments
Posting your code would help.
People need some concrete to be able to help with problems.
well, there is not much to
well, there is not much to post actually.
i´m just adding the following to my code and it gives me a blank page.
function node_gallery_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL)
{
print("Hello World!");
}
without that code, everything works fine.
Instead of print("Hello
Instead of
print("Hello World!");trydrupal_set_message("Hello World!");. Print statements can interfere with Drupals own output. The other possibility that comes to mind is that node_gallery_nodeapi() is already defined.Yeah, it was already defined
Yeah, it was already defined in the module, i didn´t expect that.
Thank you so much, i guess i would have spent hours with that :)
Castell