function webfm_menu in Web File Manager 5
Same name and namespace in other branches
- 5.2 webfm.module \webfm_menu()
Implementation of hook_menu().
File
- ./
webfm.module, line 476
Code
function webfm_menu($maycache) {
$items = array();
if ($maycache) {
$items[] = array(
'title' => t('Web File Manager'),
'path' => 'webfm',
'access' => user_access('access webfm'),
'callback' => 'webfm_main',
);
$items[] = array(
'title' => t('Web File Manager'),
'path' => 'webfm_js',
'access' => user_access('access webfm'),
'callback' => 'webfm_ajax',
'type' => MENU_CALLBACK,
);
$items[] = array(
'title' => t('Web File Manager'),
'path' => 'webfm/upload',
'access' => user_access('access webfm'),
'callback' => 'webfm_upload',
'type' => MENU_CALLBACK,
);
$items[] = array(
'title' => t('File Not Found'),
'path' => 'webfm_send',
'access' => true,
'callback' => 'webfm_send_file',
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/settings/webfm',
'title' => t('Web File Manager Settings'),
'description' => t('Configure WebFM.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'webfm_admin_settings',
),
'access' => user_access('administer webfm'),
'type' => MENU_NORMAL_ITEM,
);
}
return $items;
}