You're missing the page callback
property:
function tpzclassified_menu() {
$items['user/%user/kleinanzeigen'] = array(
'title' => t('Meine Kleinanzeigen'),
'page callback' => 'tpzclassified_kleinanzeigen',
'page arguments' => array(1),
'access callback' => 'user_view_access',
'access arguments' => array(1),
'type' => MENU_LOCAL_TASK,
);
return $items;
}
function tpzclassified_kleinanzeigen($account) {
return 'This is the Meine Kleinanzeigen page';
}
Replace tpzclassified_kleinanzeigen
with the function name that generates the page.
Also, never use 'access callback' => TRUE
: it's a huge security hole. I've changed that to use user_view_access()
, which checks to the see if the user is allowed to view %user
's profile. You could use user_edit_access()
if you wanted to check to see if a user is allowed to edit %user
's profile.