Hi everybody!
I have a *great* problem in my module.
I created a form and I want to upload a picture.
During the validation I check its properties and the upload using file_save_upload.
then I add to the object node the field "foto" with the correct filepath.
BUT when the hook_insert is called, the $node has the field "foto" set to NULL?!?
can anyone explain me how i can retrieve this value (i want to insert it in my DB).
i tried to call "node_save($node)", but then the hook_insert is called twice!
thanks in advance to everybody!!
I added the full code below:
Read »








