tra('Top Visited FAQs'), 'description' => tra('Display the specified number of FAQs with links to them, from the most visited one to the least.'), 'prefs' => ['feature_faqs'], 'params' => [], 'common_params' => ['nonums', 'rows'] ]; } /** * @param $mod_reference * @param $module_params */ function module_top_visited_faqs($mod_reference, $module_params) { $smarty = TikiLib::lib('smarty'); $faqlib = TikiLib::lib('faq'); $ranking = $faqlib->list_faqs(0, $mod_reference["rows"], 'hits_desc', ''); $smarty->assign('modTopVisitedFaqs', $ranking["data"]); }