function _faq_filter_process in Frequently Asked Questions 7.2
Same name and namespace in other branches
- 7 faq.module \_faq_filter_process()
1 string reference to '_faq_filter_process'
- faq_filter_info in ./
faq.module - Implements hook_filter_info().
File
- ./
faq.module, line 1513 - The FAQ module allows users to create a FAQ page, with questions and answers displayed in different styles, according to the settings.
Code
function _faq_filter_process($text) {
$text = preg_replace_callback('/\\[faq:?([^\\]]*)\\]/', '_faq_faq_page_filter_replacer', $text);
// Remove comments, as they're not supported by all input formats.
$text = preg_replace('/<!--.*?-->/', '', $text);
return $text;
}