What's the recommended way to add a tab to the Admin template "user_edit"? I see that there are "slots" like
...except I can't do a replacement on those because they each occur twice, once in the tab list and once where the corresponding tab pane is defined. I would need to put something different in each place, and I don't even think I can use a PHP callback for this as the replacement function only receives the matches as an argument, not the original template text.
Code:
<!-- slot: pre_preferences -->