View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0025600 | mantisbt | public | 2019-03-14 03:57 | 2019-03-14 11:02 | |
Reporter | fman | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | new | Resolution | open | ||
Product Version | 2.19.0 | ||||
Summary | 0025600: Using custom function to customize mail contents | ||||
Description | I've done several searches hitting the forum and other tickets.
Before the line containing add: // check if config exists to use a custom function if( null != $t_custom_func && '' != trim($t_custom_func) ) {
Nothing brilliant I did it following other excellent examples found in the MantisBT code. please let me know if you would like to have a pull request for this regards | ||||
Tags | No tags attached. | ||||
I don't necessarily support the approach as - although not officially deprecated - custom functions are kind of obsolete, but anyway, defining a new one does not require creating a new config option. Have a look at the admin guide on custom functions and how helper_call_custom_function() handles calling the default (defined in core/custom_functions_api.php) or custom / override one (in config/custom_functions_inc.php) based on a convention in the function's name. |
|
Thanks for your answer thanks again |
|
That would be the better approach indeed. Feel free to propose a pull request to introduce a new event. |
|