Exemple #1
0
/**
 * Obtains a search document given the ousearch parameters.
 * @param object $document Object containing fields from the ousearch documents table
 * @return mixed False if object can't be found, otherwise object containing the following
 *   fields: ->content, ->title, ->url, ->activityname, ->activityurl,
 *   and optionally ->extrastrings array and ->data
 */
function forumng_ousearch_get_document($document)
{
    require_once dirname(__FILE__) . '/mod_forumng.php';
    return mod_forumng_post::search_get_page($document);
}