I've written a question and gotten an answer. The is fine but not fulfill my requirements. The question is below:
It will be helpful, if anyone explain the full meaning of the string 'access content' because I've not found 'access content' string on '/admin/people/permissions' page. On the other hand, if I use following code, it will be work.
function custom_menu_menu(){
$items = array();
$items ['status'] = array(
'title' => 'My Status',
'menu_name' => 'main_menu',
'page callback' => 'status_page',
'access arguments' => array('access content'),
);
return $items;
}
/*
*Definition of the menu callback function.
*/
function status_page() {
return 'Hello world!';
}
My Questions:
- Is 'access content' a 'permission string'? if answer is 'yes' then please explain how does it works? [note: it is not listed in '/admin/people/permissions' page. So, How determinate that user's rules has this permission]
- What is the meaning of 'access content' permission? example: 'Page: Create new content' permission means if user has this permission then user can create 'Page' content but if user has 'access content' permission then what can do user on this link page.