Current documentation of og_is_member() states:

...
  * @param $states
 *   (optional) Array with the state to return. If empty groups of all state will
 *   return.

which is not correct, once this argument defaults to OG_STATE_ACTIVE.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marcoscano’s picture

Status: Active » Needs review
FileSize
605 bytes

Patch attached

jacob.embree’s picture

I suggest replace "empty" with "omitted".

jacob.embree’s picture

alesr’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +OG-7.x-2.10-release

  • alesr committed 16606d5 on 7.x-2.x authored by marcoscano
    #2542856 og_is_member() documentation incorrectly inform about...
alesr’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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