mgd_get_reply_by_name

Name

mgd_get_reply_by_name -- Get a reply by its name

Synopsis

mgd_get_reply_by_name(int id, string name);

Description

Minimum version: Midgard 1.4 (Bifrost)

Retrieves information about an article record by its name and the id of the article it is a reply to.

Returns and object describing the article if successfull. Returns false on failure.

Example

<?php
  $lang = "fr";
  $article = ($lang != "en") ? 
  	    mgd_get_reply_by_name($article->id, $lang) : 
  	    $article;
  # $article object now holds the french language version
?>