Open Source Content Management System

mgd_approve_article

  1. Description

mgd_approve_article -- Approve/unapprove an article

Description

`bool **mgd_approve_article** (int id, bool approve)`

Minimum version: Midgard 1.2.5 (Mad King)

Approves/unapproves the article id. The optional boolean parameter approve, which defaults to TRUE, specifies wether to approve or unapprove the article. The group of the user must be the owner of the article. Upon approval, the function sets the date of approval to the current date and the approver to the user calling the function. Unapproval clears both fields.

Returns TRUE on success, FALSE on failure.

\n";
         echo "Reason: " . mgd_errstr(); . "
\n"; } else { echo "Approved article $id.
\n"; } } ?>
Designed by Nemein, hosted by Anykey