Time filter process callback.
Now, in the "process" step, we'll search for our escaped time tags and do the real filtering: replace the xml tag with the date.
Related topics
1 string reference to '_filter_example_filter_time_process'
- filter_example_filter_info in filter_example/
filter_example.module - Implements hook_filter_info().
File
- filter_example/
filter_example.module, line 184 - Module file for filter_example.
Code
function _filter_example_filter_time_process($text, $filter) {
return str_replace('[filter-example-time]', '<em>' . format_date(time()) . '</em>', $text);
}