function aic_menu($may_cache) {
if ($may_cache) {
}
else {
// Rename the user/view and user/edit tabs. I hope this works. :-)
$access_access =
user_access('administer access control');
if ($user !== FALSE) {
// Always let a user view their own account
$view_access |=
$user->
uid ==
arg(1);
// Only admins can view blocked accounts
$view_access &= $account->status || $admin_access;
$items[] =
array('path' =>
'user/'.
arg(1) .
'/view',
'title' =>
t('Learn more'),
$items[] =
array('path' =>
'user/'.
arg(1) .
'/edit',
'title' =>
t('Edit my profile'),
'callback' =>
'drupal_get_form',
'callback arguments' =>
array('user_edit'),
}
}
}
return $items;
}