You are here

function nodeaccess_menu_alter in Nodeaccess 6

Implementation of hook_menu_alter().

File

./nodeaccess.module, line 38

Code

function nodeaccess_menu_alter(&$items) {
  $items['node/%node/edit']['access callback'] = 'nodeaccess_edit_access';
  $items['node/%node/edit']['access arguments'] = array(
    'update',
    1,
  );
  $items['node/%node/delete']['access callback'] = 'nodeaccess_edit_access';
  $items['node/%node/delete']['access arguments'] = array(
    'delete',
    1,
  );
}