Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
og
Commits
78da0725
Commit
78da0725
authored
Jun 19, 2018
by
jacob.embree
Committed by
alesr
Jun 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1997274
Return docs for og_get_entity_groups() unclear.
parent
d16275a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
og.module
og.module
+3
-3
No files found.
og.module
View file @
78da0725
...
...
@@ -2305,9 +2305,9 @@ function og_user_access_entity($perm, $entity_type, $entity, $account = NULL, $s
* (optional) The field name associated with the group.
*
* @return
* An a
rray with the group's entity type as the key, and array - keyed by
*
the OG membership ID and the group ID as the value. If nothing found,
*
then an empty array
.
*
An a
ssociative array keyed by the group's entity type. Each value is itself
*
an array, where each item has for its key the OG membership ID and for its
*
value the group ID
.
*/
function
og_get_entity_groups
(
$entity_type
=
'user'
,
$entity
=
NULL
,
$states
=
array
(
OG_STATE_ACTIVE
),
$field_name
=
NULL
)
{
$cache
=
&
drupal_static
(
__FUNCTION__
,
array
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment