mgd_update_element

Name

mgd_update_element -- Modify an element record

Synopsis

bool mgd_update_element(int id, string name, string value);

Description

Minimum version: Midgard 1.0 (Land Rover)

Updates the element record with id id with the information provided.

Returns true if successfull. Returns false on failure.

Example

<?php
  $id    = 17;
  $name  = "ROOT";
  $value = "<HTML><BODY><(title)><(content)></BODY></HTML>";
  if(mgd_update_element( $id, $name, $value )){
    echo "Updated element.";
  }else{
    echo "Could not update element";
  }
?>