Mantis Logo
Mantis Manual
Manual
Customizing Mantis

Custom Fields
Enumerations
Email Notifications
Customizing Status Values
LDAP
Custom Functions


Partner Links


Custom Functions
Last Modified: August 24, 2004 16:08PM
(Introduced in 0.19.0)
Description

Custom functions are used to extend the functionality of Mantis by integrating user written
functions into the issue processing at strategic places. This allows the system administrator to change
the functionality without re-writing parts of the internals of the code.

User versions of these functions are placed in a file called custom_functions_inc.php in the root
directory of Mantis. This is the same place that the "config_inc.php" file modifying Mantis
defaults is placed. In normal processing, Mantis will look for override functions and execute them
instead of the provided default functions.

Custom functions have names like custom_function_override_descriptive_name where descriptive name
described the particular function. The specific functions are described below. The simplest way to
create a custom function is to copy the default function, named custom_function_default_descriptive_name
from the core/custom_function_api.php file to your override file (custom_functions_inc.php), and
rename it. The specific functionality you need can then be coded into the override function.

Contents
  1. Defined Functions
  2. Example Custom Function

User Contributed Notes
Custom Functions
Add Notes About Notes
There are no user contributed notes for this page.
Last updated: Sat, 13 Mar 2010 - 20:57:55

Mantis @ SourceForge