How to use Custom Functions?

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
logan

How to use Custom Functions?

Post by logan »

Hi,
I would like to adapt Mantis for my use, so I want to change the code!
i did not really understand how the custom functions work:
for example I want to change the display of the array in the file manage_user_page.php
i need to override print_manage_user_sort_link(...)
Is it right that I have to put :
helper_call_custom_function( 'print_manage_user_sort_link', array( 'manage_user_page.php', lang_get( 'username' ), 'username', $c_dir, $c_sort, $c_hide ))
and then override the function in custom_functions_inc.php?

Thanks for your help
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

logan

Post by logan »

Thanks for this answer but I don't understand what it is written in the manual!

What I said, is it right or false?
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

False.

Custom functions are specific hooks placed in the code, not a generic way to change any function. In your case, you would need to edit the print_manage_user_sort_link() function directly.

Please post a bug at http://bugs.mantisbt.org with your changes and the reason for them, and we'll look at incorporating it in the regular release.
logan
Posts: 1
Joined: 07 Jul 2005, 08:21

logan

Post by logan »

Thanks, so now I have to add a new paramater in the function:
custom_field_set_sequence( $f_field_id, $f_project_id, $f_sequence );
In this case, Do I have to do a custom functions?
Thanks in advance
Post Reply