Using the following code:
function mymodule_menu_alter(&$items) {
if (isset($items['node/add/page'])) {
$items['node/add/page']['access arguments'] = FALSE;
}
}
I get the following error:
warning: Missing argument 1 for node_access() in /var/www/vhosts/mysite.co.uk/httpdocs/modules/node/node.module on line 2011.
The code actually works and does what I need it to do but the error concerns me and confuses my site users.
I am not sure what the issue is or how to resolve it. Can anyone offer some assistance?