1

I'd like to programmatically add user forum permissions in Drupal.

Do I have to use ACL module? Is there any example out there, as the documentation is a bit thin?

Michael Eakins
  • 4,149
  • 3
  • 35
  • 54
Kay Pale
  • 6,449
  • 7
  • 28
  • 28

2 Answers2

0

The Rules module will work as well. With the rules module (but not with ACL) you have the option of setting triggers for this to occur.

Andrew Sledge
  • 10,163
  • 2
  • 29
  • 30
0

What do you mean by programmatically, exactly?

You can define new permissions using hook_perm:

http://api.drupal.org/api/function/hook_perm

But the forum module(s) for Drupal should ship with role based permissions to use.

Kevin
  • 13,153
  • 11
  • 60
  • 87