mgd_update_group

Name

mgd_update_group -- Update a group record

Synopsis

bool mgd_update_group(int gid, string name, string official, string street, string postcode, string city, string homepage, string email, string extra, int owner);

Description

Minimum version: Midgard 1.1.1 (Iron River)

Updates the group record with id gid with the provided information.

Returns true if successfull. Returns false on failure.

Example

<?php
  $grp = mgd_update_group('6','midgard','Midgard Project Ry',
            'Museokatu 20-22 A 25','FIN-00100','Helsinki',
            'http://www.midgard-project.org/',
            'user@midgard-project.org',
            'We all love Midgard','1');
  if(!$grp) {
        echo "update of group failed.<br>";
        echo "reason: " . mgd_errstr();
  }else{
        echo "group updated.";
  }
?>