mgd_create_preference

Name

mgd_create_preference -- Create a preference record

Synopsis

int mgd_create_preference(int person, string domain, string name, string value);

Description

Minimum version: Midgard 1.4 (Bifrost)

Creates a preference record with the provided parameters.

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

Example

<?php
 $person = 13;
 $domain = "examples";
 $name   = "favcolour";
 $value  = "red";

 mgd_create_preference( $person, $domain, $name, $value);
?>