mgd_create_event

Name

mgd_create_event -- Create a new event record

Synopsis

int mgd_create_event(int up, timestamp start, timestamp end, string title, string description, int type, string extra, int owner, bool busy);

Description

Minimum version: Midgard 1.4 (Bifrost)

Creates a new event record with the provided parameters.

set the busy flag for events like meetings, where the presence of the member is required and if this event can not be attended at the same time of other 'busy' events.

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

Example

<?php
  $event = mgd_create_event(
             17,
             5769434,
             5779442,
             "example",
             "an example event",
             3,
             "extra information",
             3,
             FALSE);
?>