function feedback_menu in Feedback 5
Same name and namespace in other branches
- 5.2 feedback.module \feedback_menu()
- 6.2 feedback.module \feedback_menu()
- 7.2 feedback.module \feedback_menu()
Implementation of hook_menu().
File
- ./
feedback.module, line 16 - Enables a site-wide feedback page.
Code
function feedback_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'feedback',
'title' => t('Feedback'),
'callback' => 'feedback_mail_page',
'access' => user_access('can send feedback'),
'type' => MENU_SUGGESTED_ITEM,
);
$items[] = array(
'path' => 'admin/settings/feedback',
'title' => t('Feedback'),
'description' => t('Configure the feedback page'),
'callback' => 'feedback_settings_page',
'access' => user_access('administer feedback'),
'type' => MENU_NORMAL_ITEM,
);
}
return $items;
}