By hailander on
hi
i created my own content type
i implemented hook_form , hook_validate ,hook_insert and everything work fine ,
but i'm curious about something
hook_validate take $node as parameter , i don't see in which phase (by which function) drupal has created this object
and assign the form variable (such as title , body and other custom fields) to it ,
for example i have a custom field named $form['joke'] in my hook_form()
in the hook_validate($node) i can use $node->joke
i want to know where drupal create this node object .
thanks
Comments
?
can someone clarify this
The whole point of the Drupal
The whole point of the Drupal hook system is that you don't need to know what is happening behind the scenes. What is it that you are trying to do that you need to know this?
Contact me to contract me for D7 -> D10/11 migrations.