Unverified Commit db723b97 authored by alesr's avatar alesr Committed by GitHub

Merge pull request #382 from Gizra/1997274

@return docs for og_get_entity_groups() unclear
parents 04fec0ff 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 array 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 associative 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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment