mgd_create_event

(Midgard 1.4.2 'Bifrost')

mgd_create_event -- Create a new event record

Description

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

Minimum version: Midgard 1.4 (Bifrost)

Creates a new event record with the provided parameters.

Note: 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 successful. Returns FALSE on failure.


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