I want to add delete permission for a specific node id programitically. I try calling 'node_delete' but it doesn't work.

how can I do it ?

  • can you explain what "doesnt work" means? – saadlulu May 13 '13 at 11:36

The node_delete() function requires to have the delete permission for the current logged user. If you run the node_delete() function as anon user, is probably that doesn't work

  • So what is the solution in this case? – hd. May 13 '13 at 4:05
  • @hd. Can you explain your scenario ? – GoodSp33d May 13 '13 at 5:31

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.