View Issue Details

IDProjectCategoryView StatusLast Update
0003870mantisbtplug-inspublic2004-07-07 20:17
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Version0.18.3 
Fixed in Version0.19.0a1 
Summary0003870: Support for custom functions which provides hooks for customizing behaviour
Description

Provide the infrastructure that has a set of custom functions that can be overriden by the user to customise Mantis. custom_function_api.php should provide the default implementation for these functions, the user can then override these function in mantis/custom_functions_inc.php.

For example, if we want to allow the user to define the criteria that determines which issues should appear in the changelog, then we can add a "changelog_include_issue" which takes an issue id and returns a bool (true: include, false:exclude).

core/custom_function_api.php

  • Mantis developers will add custom_function_default_changelog_include_issue()

/custom_functions_inc.php

  • User will add custom_function_override_changelog_include_issue()

The user should be able to call custom_function_default_changelog_include_issue() from within custom_function_override_changelog_include_issue().

The set of available custom functions, their documentation and parameters, can be found in core/custom_function_api.php.

With time more hooks and custom functions will be introduced that will provide Mantis users with more flexibility and control. Some of the functions will just be triggers that allows users to do their own actions.

TagsNo tags attached.

Activities

vboctor

vboctor

2004-05-24 17:23

manager   ~0005576

Implemented in CVS. Will be included in 0.19.0. Please report new issues under "plugins" category for requests for specific custom functions.