added the right export script for industriels users (not companies)
This commit is contained in:
@@ -32,6 +32,15 @@ function materio_contactops_menu(){
|
||||
|
||||
$items['admin/content/companies/export'] = array(
|
||||
'title' => t('Export Companies'),
|
||||
'page callback' => 'materio_companies_export',
|
||||
'page arguments' => array(),
|
||||
'access arguments' => array('access company export'),
|
||||
'type' => MENU_LOCAL_TASK,
|
||||
'file' => 'materio_contactops.pages.inc',
|
||||
);
|
||||
|
||||
$items['admin/users/industriels/export'] = array(
|
||||
'title' => t('Export Companies Contacts'),
|
||||
'page callback' => 'materio_contactops_export',
|
||||
'page arguments' => array(),
|
||||
'access arguments' => array('access company export'),
|
||||
@@ -64,8 +73,16 @@ function materio_contactops_menu_local_tasks_alter(&$data, $router_item, $root_p
|
||||
'#link' => $item,
|
||||
);
|
||||
}
|
||||
|
||||
break;
|
||||
break;
|
||||
case 'admin/users/industriels':
|
||||
$item = menu_get_item('admin/users/industriels/export');
|
||||
if ($item['access']) {
|
||||
$data['actions']['output'][] = array(
|
||||
'#theme' => 'menu_local_action',
|
||||
'#link' => $item,
|
||||
);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user