function filebrowser_menu in Filebrowser 6
Same name and namespace in other branches
- 8 filebrowser.module \filebrowser_menu()
- 5 filebrowser.module \filebrowser_menu()
- 6.2 filebrowser.module \filebrowser_menu()
- 7.4 filebrowser.module \filebrowser_menu()
- 7.2 filebrowser.module \filebrowser_menu()
- 7.3 filebrowser.module \filebrowser_menu()
File
- ./
filebrowser.module, line 3
Code
function filebrowser_menu() {
$items = array();
// TODO: Query below causes error on module uninstall
$qry = db_query('SELECT path, location FROM {filebrowser}');
while ($o = db_fetch_object($qry)) {
$items[$o->path] = array(
'page callback' => 'filebrowser_page',
'page arguments' => array(
$o->path,
),
'access arguments' => array(
'view directory listing',
),
'type' => MENU_CALLBACK,
);
}
$items['admin/settings/filebrowser'] = array(
'title' => 'Filebrowser',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'filebrowser_admin_settings',
),
'access arguments' => array(
'access administration pages',
),
'type' => MENU_NORMAL_ITEM,
);
return $items;
}