Name
mgd_is_article_in_topic_tree -- Check location within a topic tree
Synopsis
int mgd_is_article_in_topic_tree
(int root, int article);
Description
Minimum version: Midgard 1.1.1 (Iron River)
Checks wether the article article is within
the topic (sub)tree starting from the root topic with id
root.
Returns true if the article is within the topic (sub)tree.
Returns false if the article is not within the topic (sub)tree.
Example
<?php
$root = 17;
$article = 13;
echo "Article $article is ";
if ( !mgd_is_article_in_topic_tree($root, $article) )
{
echo "not ";
}
echo "in the topic tree below topic $root";
?>