I have a new type of content project.
I allowed an anonymous user to add project content in /node/add/project.
I want to add a test before saving node (like the hook_form_validate of webform)
I use hook_node_validate but it's not working
function projects_node_validate($node, $form)
{
die 'in hook';
}
If this is the right hook, how can I use it?
Thank you