mgd_has_sitegroups

Name

mgd_has_sitegroups -- Check if Midgard has sitegroups

Synopsis

bool mgd_has_sitegroups(void);

Description

Minimum version: Midgard 1.4 (Bifrost)

Check whether Midgard has sitegroups enabled.

Returns true if Midgard has sitegroups enabled. Returns false if Midgard does not have sitegroups enabled.

Example

<?php
  if(mgd_has_sitegroups) {
    # do some sitegroup specific stuff.
  } else {
    # find a way to work without them.
  }
?>