Custom Functions Enumeration alternative?
Moderators: Developer, Contributor
-
- Posts: 20
- Joined: 19 May 2014, 19:46
Custom Functions Enumeration alternative?
Following the documentation, I created 2 functions in core/custom_functions_api.php for enumerating 2 custom fields. However, whenever I do an upgrade to MantisBT, this file gets overwritten and I have to re-add my custom functions. Is there a way to add custom enumeration functions in a plugin that will be recognized for populating custom fields?
Re: Custom Functions Enumeration alternative?
Where did you find this in documentation?ShadowKatmandu wrote: ↑17 Sep 2019, 15:10 Following the documentation, I created 2 functions in core/custom_functions_api.php for enumerating 2 custom fields.
You should use config/custom_functions_inc.php for that.
-
- Posts: 20
- Joined: 19 May 2014, 19:46
Re: Custom Functions Enumeration alternative?
Thank you. I don't recall where I read that; it was a LONG time ago. I likely misread "config" for "core" and got confused after that.