Name
mgd_is_topic_owner -- Check topic ownership
Synopsis
bool mgd_is_topic_owner
(int topic);
Description
Minimum version: Midgard 1.1.1 (Iron River)
Checks whether the authenticated user is owner of
the topic record with id id.
Returns true if the user is owner of the record.
Returns false if the user is not owner of the record.
Example
<?php
if(mgd_is_topic_owner(27)) {
echo "you are owner of topic #27";
}else{
echo "you are not the owner of topic #27";
}
?>