You are here

function block_access_menu_alter in Block Access 6.2

Same name and namespace in other branches
  1. 6 block_access.module \block_access_menu_alter()
  2. 7 block_access.module \block_access_menu_alter()

File

./block_access.module, line 90

Code

function block_access_menu_alter(&$items) {
  $items[BLOCK_ACCESS_MENU_ADD]['access arguments'] = array(
    BLOCK_ACCESS_CREATE,
  );
  $items[BLOCK_ACCESS_MENU_DELETE]['access callback'] = 'block_access_check_delete';
  $items[BLOCK_ACCESS_MENU_DELETE]['access arguments'] = array(
    4,
  );
  $items[BLOCK_ACCESS_MENU_CONFIG]['access callback'] = 'block_access_check_config';
  $items[BLOCK_ACCESS_MENU_CONFIG]['access arguments'] = array(
    4,
    5,
  );
}