You are here

function webfm_menu in Web File Manager 5.2

Same name and namespace in other branches
  1. 5 webfm.module \webfm_menu()

Implementation of hook_menu().

File

./webfm.module, line 325

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' => user_access('view webfm attachments'),
      'callback' => 'webfm_send_file',
      'type' => MENU_CALLBACK,
    );
    $items[] = array(
      'path' => 'admin/settings/webfm',
      'title' => t('Webfm 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;
}