how to unset admin menu links programmatically ?
I have created a module with this hook in it
function myModuleName_menu_link_alter(&$item)
{
// dpm($item['link_path']);
if($item['link_path']=="/admin/config/people")
{
$item=FALSE;
}
}
the link path
"/admin/config/people"
is listed with dpm.
how can i remove it from the admin menu?
I have also tried with this hook
function my module_menu_alter(&$items) {
// dpm($items['user/%user/cas']);
unset($items['user/%user/cas']);
}