Minimum version: Midgard 1.0 (Land Rover)
Modifies the article record with the given id number. Only owners of the topic the article is located in or authors of the article are allowed to modify the record.
Returns true if successfull. Returns false on failure.
<?php $id = 123; if(! $article = mgd_get_article( $id )) { echo "Could not get article $id.<br>\n"; echo "reason: " . mgd_errstr(); } else { $article->name = "A new name for this article"; mgd_update_article($article->id, $article->topic, $article->name, $article->title, $article->abstract, $article->content, $article->author, $article->url, $article->calstart, $article->caldays, $article->icon, $article->view, $article->print, $article->extra1, $article->extra2, $article->extra3); $err = mgd_errno(); if( $err ) { echo "Could not update article $id.<br>\n"; echo "reason: " . mgd_errstr( $err ); } else { echo "Updated article $id.<br>"; } } ?>