You are here

function publishcontent_og_permission in Publish Content 7

Implements hook_og_permission().

File

./publishcontent.module, line 546
Add link to publish or unpublish a node, with access control based on the node type

Code

function publishcontent_og_permission() {
  $permissions = array();
  foreach (publishcontent_permission() as $name => $details) {
    $permissions[$name] = array(
      'title' => $details['title'],
      'description' => isset($details['description']) ? $details['description'] : '',
      'default role' => array(
        OG_ADMINISTRATOR_ROLE,
      ),
    );
  }
  return $permissions;
}