You are here

function vsf_upload_menu in Visual select file 7

Implements hook_menu().

File

submodules/vsf_upload/vsf_upload.module, line 25

Code

function vsf_upload_menu() {
  $items = array();
  if (!module_exists('file_entity')) {
    $items['file/add'] = array(
      'title' => 'Add file',
      'description' => 'Upload a file',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'vsf_upload_form',
      ),
      'access arguments' => array(
        'upload vsf files',
      ),
      'type' => MENU_NORMAL_ITEM,
      'menu_name' => 'navigation',
    );
  }
  return $items;
}