You are here

function commentaccess_menu_alter in Comment Access 7

Implementation of hook_menu_alter()

File

./commentaccess.module, line 43
Provides users with permissions for comments on nodes they own.

Code

function commentaccess_menu_alter(&$items) {
  $items['comment/%/approve']['access callback'] = 'commentaccess_access_check';
  $items['comment/%/approve']['access arguments'] = array(
    1,
    'approve',
  );
  $items['comment/%/delete']['access callback'] = 'commentaccess_access_check';
  $items['comment/%/delete']['access arguments'] = array(
    1,
    'delete',
  );
}