I want to prevent users of my Drupal site from editing the current node when The status of the node is closed.

The node is "closed" when the field (taxonomy term) == closed

Is there a way to do this please? I really don't help about this on the topic. Nothing with rule module. Thanks in advance.

Sorry in advance too if i ask in wrong forum ....!!!

Comments

mittal saurabh’s picture

Hi,

You can implement hook_node_update in your custom module and there you can check your taxonomy value logic. If condition met show the error message and prevent the values to be updated.

Thanks