You are here

function comment_delete_menu_alter in Comment Delete 7

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

Implements hook_menu_alter().

File

./comment_delete.module, line 59
comment_delete.module

Code

function comment_delete_menu_alter(&$items) {
  $items['comment/%/delete']['page callback'] = 'drupal_get_form';
  $items['comment/%/delete']['page arguments'] = array(
    'comment_delete_options_form',
    1,
  );
  $items['comment/%/delete']['access callback'] = 'comment_delete_check_access';
  $items['comment/%/delete']['access arguments'] = array(
    1,
  );
  unset($items['comment/%/delete']['file']);
}