Sign up ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

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 ?

share|improve this question
    
can you explain what "doesnt work" means? –  saadlulu May 13 '13 at 11:36

1 Answer 1

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

share|improve this answer
    
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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