I'm working on a product that has a custom phrase group and will present menu items in the User CP menu using this phrase group. The phrase group isn't loaded into the global phrase group so I would like to cause it to be added to the phrasegroups used for UserCP using a plugin. In the
usercp.php code phrasegroups are loaded as:
PHP Code:
// get special phrase groups
$phrasegroups = array('user', 'infractionlevel');
I've done one test using the following code in
usercp.php and it works as expected (my phrases are used in the UserCP menu):
PHP Code:
// get special phrase groups
$phrasegroups = array('user', 'infractionlevel', 'my_custom_phrases');
Given this I returned the usercp.php to its original form and created a usercp_start hook-based plugin with the following:
PHP Code:
$phrasegroups[] = 'dto_garage';
When using this my phrases are no longer displayed in UserCP (ie - they aren't being found)
I've also tried the following without success:
PHP Code:
$my_array = array('my_custom_phrases');
$phrasegroups = array_merge($phrasegroups, $my_array);
Is this one of those issues where there is no way to add to the phrasegroups array during runtime for a specific piece of vB code or am I just not using the proper syntax or hook location?
Thanks for any assistance you can provide!
Mark