contact_menu
- Versions
- 4.6 – 5
contact_menu($may_cache)- 6 – 7
contact_menu()
Implementation of hook_menu().
Code
modules/contact.module, line 24
<?php
function contact_menu($may_cache) {
global $user;
$items = array();
if (!$may_cache) {
if (arg(0) == 'user' && is_numeric(arg(1))) {
$items[] = array('path' => "user/". arg(1) ."/contact", 'title' => t('contact'),
'callback' => 'contact_mail_user', 'type' => MENU_LOCAL_TASK, 'weight' => 2);
}
}
return $items;
}
?>Login or register to post comments 