function popup_filter_process_text in Popup 7
Same name and namespace in other branches
- 8 modules/popup_filter/includes/popup_filter.processing.inc \popup_filter_process_text()
- 7.x modules/popup_filter/includes/popup_filter.processing.inc \popup_filter_process_text()
- 6.x modules/popup_filter/includes/popup_filter.processing.inc \popup_filter_process_text()
Replaces all [popup] tags with suitable html
1 call to popup_filter_process_text()
- popup_filter_eval in modules/
popup_filter/ popup_filter.module - Popup filter callback
File
- modules/
popup_filter/ includes/ popup_filter.processing.inc, line 8
Code
function popup_filter_process_text($text) {
$tagPattern = '/\\[popup[^\\[]+\\]/';
$found = array();
preg_match_all($tagPattern, $text, $found);
// Replace each found tag with its generated HTML
foreach ($found[0] as $tag) {
$text = str_replace($tag, popup_filter_process_tag($tag), $text);
}
return $text;
}