0

If there are no comments on the current topic then user can delete the post.

If there are one or more comments on the forum-topic then user will not be able to edit or delete forum-topic.

Which module should i use or which hook needs to be implemented?

1 Answer 1

0

You're looking for hook_node_access() where $op == 'delete'.

http://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_node_access/7

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.