Thanks for that! I spent the entire day today sniffing through the various functions and trying to figure out a way to call the right functions to add a phrase group later in the execution. I didn't even think of looking for an earlier hook to append to the array BEFORE it gets processed.
Just in case anyone finds this thread later on, I've included an example below of what I did (added an additional product at the init_startup hook) :
Code:
if (THIS_SCRIPT == 'login')
{
$phrasegroups[] = 'cprofilefield';
}
Note that mod autoPM probably isn't the best example to follow since these phrase groups will be loaded on ALL pages. I limited mine to only appear where I needed it, that is in login.php.