/** * Return true if one of text fields contains {jcomments lock} tag * * @static * @access public * @param object $row Content object * @param boolean $fromText Look field 'text' or 'introtext' & 'fulltext' * @return boolean True if {jcomments lock} found, False otherwise */ function isLocked(&$row, $fromText = false) { return JCommentsContentPluginHelper::_findTag($row, '/{jcomments\\s+lock}/is', $fromText); }