4

upload hook_validate hook_insert

http://drupal.org

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 more

Read »
Created by Dplanet 1 year 37 weeks ago
Category: Modules   Tags:
  • Dplanet
  • group42
  • dries
  • Caleb

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Tags for upload hook_validate hook_insert

Recent comments