-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathog.og.inc
35 lines (31 loc) · 984 Bytes
/
og.og.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* @file
* Organic Groups plugins declarations.
*
* NOTE: This file is never called in Backdrop. It's here to provide a place to
* store old ctools plugins that are not yet incorporated in Backdrop OG.
* At the moment, the last one to be ported is og_membership_from_group_and_user
*/
/**
* Implements hook_og_info().
*
*/
function og_og_info() {
$info = array(
'relationships' => array(
'og_membership_from_group_and_user' => array(
'title' => t('OG membership from a group node and user'),
'keyword' => 'og_membership',
'description' => t('Get the OG membership context from an a node that is a group and user.'),
'required context' => array(
new og_context_required(t('Node'), 'node'),
new og_context_required(t('User'), 'user'),
),
'context' => 'og_membership_from_group_and_user_context',
'file' => 'plugins/access/og_perm.inc',
),
),
);
return $info;
}