I have a custom module, saidbakr_tools
and I want to apply permissions to access its administration page found admin/config/administration/saidbakr_tools
. All what I have to got from the official module tutorial is to prevent access to it by preventing access to the admin pages.
The code I am using is the following one.
function saidbakr_tools_menu() {
$items = array();
$items['admin/config/administration/saidbakr_tools'] = array(
'title' => 'SaidBakr Tools',
'description' => 'Settings for SaidBakr Tools!',
'page callback' => 'drupal_get_form',
'page arguments' => array('saidbakr_tools_form'),
'access arguments' => array('administer saidbakr_tools'),
'type' => MENU_NORMAL_ITEM,
);
/**
* Implements hook_permission().
*/
function saidbakr_tools_permission() {
return array(
'administer saidbakr_tools' => array(
'title' => t('Access content for the SaidBakr Tools module'),
)
);
I cannot prevent other users with access to administrative pages to access the configuration form for my module.
Is there any error in my code? How can I achieve what I am trying to do?