mgd_update_group

(Midgard 1.4.2 'Bifrost')

mgd_update_group -- Update a group record

Description

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

Minimum version: Midgard 1.1.1

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

Returns TRUE on success, FALSE on failure.


<?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.";
  }
?>