Open Source Content Management System

mgd_create_article

  1. Description

mgd_create_article -- Create a new article

(Note: this function is deprecated since Midgard 1.6.0. Corresponding OOP-method should be used, instead)

Description

int mgd_create_article(int up, int topic, string name, string title, string abstract, string content, int author, string url, string calstart, int caldays, int icon, int view, int print, string extra1, string extra2, string extra3, int type)

Creates a new article. To create an article in a topic, the user must be in the topic's owner group.

Returns the id of the created article if successful. Returns FALSE on failure.

\n";  
            echo "reason: " . mgd_errstr();  
     } else {  
            echo "Created article '$name' with id " . $article;  
     }  
    ?>
Designed by Nemein, hosted by Anykey