My post on developing a custom search at http://drupal.org/node/124963 has helped one other person besides myself, so I am going to continue the technique here with a different problem.
Bear in mind, I am new to this platform and trying to learn it at a low-enough level that I can leverage it quickly in the future instead of always flailing around for a quick fix.
I need to get content from my node onto the users profile in a particular format/order.
I know that the user.module does it when the user clicks goes to view their own profile, so I start by hunting in there for clues.
Here is the user_menu stripped down to semi-pseudo code.
if ($may_cache) {
}
else {
if (WE HAVE A VALID USER ID) {
if ($user !== FALSE) {
$items[] = array('path' => 'user/'. arg(1), 'title' => t('user'),
'type' => MENU_CALLBACK, 'callback' => 'user_view',
'callback arguments' => array(arg(1)), 'access' => $view_access);
$items[] = array('path' => 'user/'. arg(1) .'/view', 'title' => t('View Profile'),
'access' => $view_access, 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10);
//edit user
//delete user
}
}
}
}