mgd_update_person

(Midgard 1.4.2 'Bifrost')

mgd_update_person -- Update a person record

Description

bool mgd_update_person (int id, string firstname, string lastname, string birthdate, string street, string postcode, string city, string handphone, string homephone, string workphone, string homepage, string email, int topic, int department, int office, string extra)

Minimum version: Midgard 1.0

Updates the person record with id id with the provided parameters. To modify a person record, the user must be either logged in as the person being modified or member of a group owning in the group the person belongs to.

Returns TRUE if successful. Returns FALSE on failure.


<?php
 $id         = 13;
 $firstname  = "Armand";
 $lastname   = "Verstappen";
 $birthdate  = "1968-12-16";
 $street     = "Secret Street 13";
 $postcode   = "1000 AA";
 $city       = "Boerenstronkadeel";
 $handphone  = "+31201234567";
 $homephone  = "+31207654321";
 $workphone  = "+31201234567";
 $homepage   = "http://nl.envida.net";
 $email      = "info@nl.envida.net";
 $topic      = 13;
 $department = 17;
 $office     = 169;
 $extra      = 31;

 mgd_update_person( $id, $firstname, $lastname, $birthdate, $street, $postcode,
                    $city, $handphone, $homephone, $workphone, $homepage,
                    $email, $topic, $department, $office, $extra);
?>