function hook_og_permission in Organic groups 7
Same name and namespace in other branches
- 7.2 og.api.php \hook_og_permission()
Add group permissions.
3 functions implement hook_og_permission()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- og_field_access_og_permission in og_field_access/
og_field_access.module - Implements hook_og_permission().
- og_og_permission in ./
og.module - Implement hook_og_permission().
- og_ui_og_permission in og_ui/
og_ui.module - Implement hook_og_permission().
1 invocation of hook_og_permission()
- og_get_permissions in ./
og.module - Get all permissions defined by implementing modules.
File
- ./
og.api.php, line 17 - Hooks provided by the Organic groups module.
Code
function hook_og_permission() {
return array(
'subscribe' => array(
'title' => t('Subscribe user to group'),
'description' => t("Allow user to be a member of a group (approval required)."),
'roles' => array(
OG_ANONYMOUS_ROLE,
),
),
);
}