User Tools

  • Logged in as: anonymous (anonymous)
  • Log Out

Site Tools


mantisbt:dynamic_enum_custom_fields

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mantisbt:dynamic_enum_custom_fields [2009/04/21 03:30] ckchanmantisbt:dynamic_enum_custom_fields [2009/04/21 03:36] (current) ckchan
Line 6: Line 6:
  
 Usually when an enumeration custom field is defined, the possible values are defined as "A|B|C" (without the quotes). For dynamic possible values, an identifier is specified that specifies to Mantis which custom function to use. The ones that are already defined are "=categories", "=versions", "=future_versions", "=released_versions" (again without the quotes). Usually when an enumeration custom field is defined, the possible values are defined as "A|B|C" (without the quotes). For dynamic possible values, an identifier is specified that specifies to Mantis which custom function to use. The ones that are already defined are "=categories", "=versions", "=future_versions", "=released_versions" (again without the quotes).
 +
 +
  
  
Line 16: Line 18:
 <code php> <code php>
 # -------------------- # --------------------
 +# custom_function_api.php
 # Construct an enumeration for all categories for the current project. # Construct an enumeration for all categories for the current project.
 # The enumeration will be empty if current project is ALL PROJECTS. # The enumeration will be empty if current project is ALL PROJECTS.
Line 41: Line 44:
   * The custom function builds on top of the already existing APIs.   * The custom function builds on top of the already existing APIs.
  
-To define your own function name = "mine", you will have to define it with the following signature:+To define your own function for custom field (name = "mine"), you will have to define it with the following signature:
  
 <code php> <code php>
mantisbt/dynamic_enum_custom_fields.1240299057.txt.gz · Last modified: 2009/04/21 03:31 (external edit)

CC Attribution-Noncommercial-Share Alike 4.0 International Driven by DokuWiki