Documentation for the $group_type parameter in the og_is_member() function is missing.

/**
 * Return TRUE if entity belongs to a group.
 *
 * @param $gid
 *   The group ID.
 * @param $entity_type
 *   The entity type.
 * @param $entity
 *   The entity object. If empty the current user will be used.
 * @param $states
 *   (optional) Array with the state to return. If empty groups of all state will
 *   return.
 *
 * @return
 *   TRUE if the entity (e.g. the user) belongs to a group and is not pending or
 *   blocked.
 */
function og_is_member($group_type, $gid, $entity_type = 'user', $entity = NULL, $states = array(OG_STATE_ACTIVE)) {
}

Comments

kerasai’s picture

Status: Needs work » Needs review
StatusFileSize
new338 bytes
amitaibu’s picture

Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Needs work

The last submitted patch, 1: og_is_member_param_not_documented-2140309-1.patch, failed testing.

kerasai’s picture

Status: Needs work » Fixed

Test failed because it ran after the change was committed, setting back to "Fixed"

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.