avatar Gnat Jun 15. 2009. 11:51 am
Hello,
I'm listening to the on_project_tabs event, I want to add my tabs after others, however my module is being called before that one, thus, addAfter does nothing. How are modules loaded? How do I ensure that my module is loaded after the system modules?
avatar Ilija Studen Staff Jun 15. 2009. 11:56 am
System modules (system, resources and milestones) are always loaded first. Please note that People tab is always added last, after all other tabs are added.
avatar Gnat Jun 15. 2009. 11:58 am
I'd like to add after checklists... anyway to ensure that?
avatar Ilija Studen Staff Jun 15. 2009. 12:12 pm
Only if you module loads after the checklists module. To ensure that, you can play with position field value in acx_modules table.
avatar Gnat Jun 15. 2009. 3:49 pm
Is there anything documented about the Module.class.php installation call/procedure to set the position? Or do I have to manually update the table myself?
avatar Gnat Jun 15. 2009. 4:10 pm
Yeah, I can't see how the other modules get the position they do... any pointers here would be great.
avatar Ilija Studen Staff Jun 16. 2009. 1:22 am
There is no internal interface for using position field. It is there and system uses it for sorting, but none of the modules actually set it to any value different than 0. It's just there for convenience and if you need to change the order modules are loaded.
avatar Gnat Jun 16. 2009. 9:33 am
So do the other system modules manually modify the database?
avatar Ilija Studen Staff Jun 16. 2009. 9:34 am
Other modules never use that field.

If you wish, you can simply query the database and update it to the value you need for your module and all the other modules.
avatar Gnat Jun 16. 2009. 10:38 am
when I look at the database many modules have used the position field. I never modified them manually, so how did they get those values?

checklists 0
status 0
system 1
resources 2
discussions 3
milestones 4
calendar 6
timetracking 9
or Go To Next Page