I wanted to add a tab to the user edit page ie user/%/edit/foo
, and was using the twitter module as a model. After much spelunking and stepping through with a debugger, I realised that I needed to add a hook_user
function in my module so that the %user_category
part of the menu router path would work.
It's now functioning as expected, but I don't really have a solid idea of what I just did, and haven't found a good explanation anywhere.
Can anyone explain to me what it's about?