function imce_menu in IMCE 6.2
Same name and namespace in other branches
- 5 imce.module \imce_menu()
- 6 imce.module \imce_menu()
- 7 imce.module \imce_menu()
Implementation of hook_menu().
File
- ./
imce.module, line 11 - Implements the necessary hooks for the file browser to work properly.
Code
function imce_menu() {
$items = array();
$access = array(
'administer imce(execute PHP)',
);
$items['imce'] = array(
'title' => 'File browser',
'page callback' => 'imce',
'access callback' => 'imce_access',
'file' => 'inc/imce.page.inc',
'type' => MENU_CALLBACK,
);
$items['user/%user/imce'] = array(
'title' => 'File browser',
'page callback' => 'imce_user_page',
'page arguments' => array(
1,
),
'access callback' => 'imce_user_page_access',
'access arguments' => array(
1,
),
'file' => 'inc/imce.page.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
$items['admin/settings/imce'] = array(
'title' => 'IMCE',
'description' => 'Control how your image/file browser works.',
'page callback' => 'imce_admin',
'access arguments' => $access,
'file' => 'inc/imce.admin.inc',
);
$items['admin/settings/imce/profile'] = array(
'title' => 'Add new profile',
'page callback' => 'imce_profile_operations',
'access arguments' => $access,
'type' => MENU_CALLBACK,
'file' => 'inc/imce.admin.inc',
);
return $items;
}