mgd_create_preference

(Midgard 1.4.2 'Bifrost')

mgd_create_preference -- Create a preference record

Description

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

Minimum version: Midgard 1.4 (Bifrost)

Creates a preference record with the provided parameters.

Returns the id of the created record if successful. Returns FALSE on failure.


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

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