function feedback_menu in Feedback 7.2
Same name and namespace in other branches
- 5.2 feedback.module \feedback_menu()
- 5 feedback.module \feedback_menu()
- 6.2 feedback.module \feedback_menu()
Implements hook_menu().
File
- ./
feedback.module, line 234 - Allows site visitors and users to report issues about this site.
Code
function feedback_menu() {
$items['admin/reports/feedback'] = array(
'title' => 'Feedback messages',
'description' => 'View feedback messages.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'feedback_admin_view_form',
),
'access arguments' => array(
'view feedback messages',
),
'file' => 'feedback.admin.inc',
);
$items['admin/reports/feedback/%feedback'] = array(
'title' => 'Feedback entry',
'page callback' => 'feedback_view',
'page arguments' => array(
3,
),
'access arguments' => array(
'view feedback messages',
),
'file' => 'feedback.admin.inc',
);
$items['admin/reports/feedback/%feedback/view'] = array(
'title' => 'View',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/reports/feedback/%feedback/edit'] = array(
'title' => 'Edit',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'feedback_entry_form',
3,
),
'access arguments' => array(
'view feedback messages',
),
'type' => MENU_LOCAL_TASK,
'file' => 'feedback.admin.inc',
);
$items['admin/reports/feedback/%feedback/delete'] = array(
'title' => 'Delete feedback entry',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'feedback_delete_confirm',
3,
),
'access arguments' => array(
'view feedback messages',
),
'type' => MENU_CALLBACK,
'file' => 'feedback.admin.inc',
);
$items['admin/config/user-interface/feedback'] = array(
'title' => 'Feedback',
'description' => 'Administer feedback settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'feedback_admin_settings_form',
),
'access arguments' => array(
'administer feedback',
),
'file' => 'feedback.admin.inc',
);
$items['admin/config/user-interface/feedback/settings'] = array(
'title' => 'Settings',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
return $items;
}