You are here

function filebrowser_menu in Filebrowser 5

Same name and namespace in other branches
  1. 8 filebrowser.module \filebrowser_menu()
  2. 6.2 filebrowser.module \filebrowser_menu()
  3. 6 filebrowser.module \filebrowser_menu()
  4. 7.4 filebrowser.module \filebrowser_menu()
  5. 7.2 filebrowser.module \filebrowser_menu()
  6. 7.3 filebrowser.module \filebrowser_menu()

Implementation of hook_menu().

File

./filebrowser.module, line 59

Code

function filebrowser_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'filebrowser',
      'title' => t('Filebrowser'),
      'access' => user_access('access filebrowser'),
      'callback' => 'filebrowser_page',
      'type' => MENU_SUGGESTED_ITEM,
    );
    $items[] = array(
      'path' => 'admin/settings/filebrowser',
      'title' => t('Filebrowser'),
      'description' => t('Set filebrowser root folder and display properties.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'filebrowser_admin_settings',
      ),
      'access' => user_access('administer site configuration'),
    );
  }
  return $items;
}