function updatable_news_menu() {
$items['updatable_news/test'] = array(
'title' => 'Updatable news',
'page callback' => 'updatable_news_test',
'access callback' => 'updatable_news_permission',
'access arguments' => "hello",
);
}
function updatable_news_permission() {
return true;
}
I have used a similar implementation and the permission is ok in another module. However, it fails in this module which defined a brand new entity.
function updatable_news_menu() {
$items['updatable_news'] = array(
'title' => 'Updatable news root',
'page callback' => 'updatable_news_root',
'access arguments' => true,
);
}
I have to add new menu item with access should always be true. But it only succeed for administrator instead of anonymous user and logged in user.
access arguments
against the documentation