You are here

function addtoany_perm in AddThis 6

File

./addthis.module, line 3

Code

function addtoany_perm() {

  //$perms = array('administer content types', 'administer nodes', 'access content', 'view revisions', 'revert revisions');
  foreach (node_get_types() as $type) {
    $name = check_plain($type->type);
    $perms[] = 'share ' . $name . ' content';
  }
  return $perms;
}