1 filter_example.module | _filter_example_filter_time_process($text, $filter) |
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
File
- modules/
examples/ filter_example/ filter_example.module, line 174 - Module file for filter_example.
Code
function _filter_example_filter_time_process($text, $filter) {
return str_replace('[filter-example-time]', '<em>' . format_date(time(), 'medium', '', 'Europe/London') . '</em>', $text);
}