add shortcuts action to materiaux/breves & companies admin pages
Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
parent
f50849a3a3
commit
c0a9653975
@ -75,6 +75,41 @@ function contentsadminrelink_menu_local_tasks_alter(&$data, $router_item, $root_
|
||||
);
|
||||
}
|
||||
break;
|
||||
case 'admin/content/materiaux' :
|
||||
$item = menu_get_item('node/add/materiau');
|
||||
if ($item['access']) {
|
||||
$data['actions']['output'][] = array(
|
||||
'#theme' => 'menu_local_action',
|
||||
'#link' => $item,
|
||||
);
|
||||
}
|
||||
$item = menu_get_item('node/add/breve');
|
||||
if ($item['access']) {
|
||||
$data['actions']['output'][] = array(
|
||||
'#theme' => 'menu_local_action',
|
||||
'#link' => $item,
|
||||
);
|
||||
}
|
||||
|
||||
break;
|
||||
case 'admin/content/companies' :
|
||||
$item = menu_get_item('node/add/company');
|
||||
if ($item['access']) {
|
||||
$data['actions']['output'][] = array(
|
||||
'#theme' => 'menu_local_action',
|
||||
'#link' => $item,
|
||||
);
|
||||
}
|
||||
$item = menu_get_item('admin/people/create');
|
||||
if ($item['access']) {
|
||||
$data['actions']['output'][] = array(
|
||||
'#theme' => 'menu_local_action',
|
||||
'#link' => $item,
|
||||
);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
// case 'admin/content/medias' : // for example 'page/view/news'
|
||||
// $item = menu_get_item('admin/content/media/import');
|
||||
// if ($item['access']) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user