I have created a custom module in drupal 7 which shows a navigation menu in admin menu bar , but when I click on it it is not selected . Here is the menu hook
function tableof_content_menu() {
$items['admin/tableof_content/add'] = array(
'title' => t('Add TOC'),
'page callback' => 'drupal_get_form',
'page arguments' => array('tableof_content_admin_add_form'),
//'access callback' => TRUE,
'access arguments' => array('administer my module'),
'type' => MENU_NORMAL_ITEM
);
$items['admin/tableof_content/edit/%'] = array(
'title' => 'Edit TOC',
'page callback' => 'drupal_get_form',
'page arguments' => array('tableof_content_admin_add_form',3),
'access callback' => TRUE,
'type' => MENU_CALLBACK
);
$items['admin/tableof_content/search/%'] = array(
'title' => 'Add TOC',
'page callback' => 'drupal_get_form',
'page arguments' => array('tableof_content_admin_add_form',3),
'access callback' => TRUE,
'type' => MENU_CALLBACK
);
return $items;
}
Also I have checked with firebug and in other menu the class "active-trail" is showing which is not appearing in my menu .
Thanks for your help in advance