mgd_list_memberships

(Midgard 1.4.2 'Bifrost')

mgd_list_memberships -- List group memberships

Description

mgd_list_memberships (int person)

Minimum version: Midgard 1.2.5 (Mad King)

Lists the group memberships of the person with id id.

Returns an object traversable by calling fetch() if successful. Returns FALSE on failure.


<?php
 $id = 13;
 $ms = mgd_list_memberships( $id );
 while( $ms->fetch() ){
   echo $ms->gid . " " . $ms->name . "<br>\n";
 }
?>