What is the correct syntax to check to see if module exists in $doc->addHeadLink section of the following code:
Code:
[php]if ($params->get(‘opensearch’, 1))
{
$doc = JFactory::getDocument();
$ostitle = $params->get('opensearch_title', JText::_('MOD_SEARCH_SEARCHBUTTON_TEXT') . ' ' . $app->get('sitename'));
$doc->addHeadLink(
JUri::getInstance()->toString(array('scheme', 'host', 'port'))
. JRoute::_('&option=com_search&format=opensearch'), 'search', 'rel',
array(
'title' => htmlspecialchars($ostitle),
'type' => 'application/opensearchdescription+xml'
)
);
}
[/php]
Thank you bunches in advance for any help anyone can provide.