mgd_create_group

Name

mgd_create_group -- Create a group

Synopsis

int mgd_create_group(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)

Creates a new group record with the given parameters.

Returns the id of the created record if successfull. Returns false on failure.

Example

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