You are here

function comment_upload_menu in Comment Upload 5

Same name and namespace in other branches
  1. 6 comment_upload.module \comment_upload_menu()

File

./comment_upload.module, line 139

Code

function comment_upload_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'comment_upload/js',
      'callback' => 'comment_upload_js',
      'access' => user_access('upload files'),
      'type' => MENU_CALLBACK,
    );
  }
  else {
    $comment_upload_path = drupal_get_path('module', 'comment_upload');
    if (module_exists('views')) {
      require_once './' . $comment_upload_path . '/comment_upload_views.inc';
    }
  }
  return $items;
}