You are here

function comment_delete_menu_alter in Comment Delete 6

Same name and namespace in other branches
  1. 7 comment_delete.module \comment_delete_menu_alter()

Implementation of hook_menu_alter().

File

./comment_delete.module, line 36

Code

function comment_delete_menu_alter(&$items) {
  $items['comment/delete']['page callback'] = 'drupal_get_form';
  $items['comment/delete']['page arguments'] = array(
    'comment_delete_form',
  );
  $items['comment/delete']['access callback'] = 'comment_delete_access_check';
  $items['comment/delete']['access arguments'] = array(
    2,
  );
  unset($items['comment/delete']['file']);
}