newsArticle

(/rs/public/functions.news.php)

newsArticle -- String containing a formatted news article.

Description

string newsArticle ($article_id)

This function formats a news article with id $article_id and returns it as a string. It returns a general template for a blank article if an invalid $article_id is specified.

This function returns a string containing a default article template on failure.

Examples

newsArticle (1) /* Returns news article with id 1 formatted in a table. */

newsArticle (-3) /* Returns a general template for a news article. */

Related Functions

newsFlash, newsMenu

Dependencies

getNewsType

Function Index