mgd_get_reply_by_name

(Midgard 1.4.2 'Bifrost')

mgd_get_reply_by_name -- Get a reply by its name

Description

mgd_get_reply_by_name (int id, string name)

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 successful. Returns FALSE on failure.


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