Open Source Content Management Framework

mgd_create_preference

  1. Description

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);
    ?>
Designed by Nemein, hosted by Anykey