You are here

function heartbeat_og_og_permission in Heartbeat 7

Implement hook_og_permission().

File

modules/heartbeat_og/heartbeat_og.module, line 22
Integration module for Heartbeat and Organic Groups.

Code

function heartbeat_og_og_permission() {
  $items = array();
  if (module_exists('heartbeat_plugins')) {
    $items['post-activity-statuses'] = array(
      'title' => t('Post activity statuses in a group'),
      'description' => t("Allow user to post heartbeat activity statuses inside a group."),
      'roles' => array(
        OG_AUTHENTICATED_ROLE,
      ),
      'default role' => array(
        OG_AUTHENTICATED_ROLE,
      ),
    );
  }
  return $items;
}