mgd_is_group_owner

(Midgard 1.4.2 'Bifrost')

mgd_is_group_owner -- Check group ownership

Description

bool mgd_is_group_owner (int id)

Minimum version: Midgard 1.4 (Bifrost)

Checks wether the authenticated user is owner of the group record with id id.

Returns TRUE on success, FALSE on failure.


<?php
 if($isowner = mgd_is_group_owner(13)) {
   // do something usefull.
 }
?>