1.19 kiriwrite_filter_add

kiriwrite_filter_add adds a filter to the filter database. If no confirm value is given then a form for adding a filter to the filter database is written.

kiriwrite_filter_add will return data that is intended for kiriwrite_output_page.

Parameters:

kiriwrite_filter_add(filterfind, filterreplace, filterpriority, filternotes, confirm);

Usage:

$pagedata = kiriwrite_filter_add();
$pagedata = kiriwrite_filter_add("Find this", "And replace it with this", 1, "Some notes about the filter itself for checking up later.", 1);

filterfind
Specifies the text to find. This is required when adding a filter.

filterreplace
Specifies what will replace the text that is found by the filterfind parameter. This is required when adding a filter.

filterpriority
Specifies the filter priority. The bigger the priority number is then the filter will be processed earlier than filters with lower priority numbers. This is required when adding a filter.

filternotes
Specifies the notes for the filter. This is required when adding a filter.

confirm
Specifies if the action to add a filter should be confirmed by passing a '1'.