You are here

function _uc_file_download_redirect in Ubercart 6.2

Same name and namespace in other branches
  1. 7.3 uc_file/uc_file.pages.inc \_uc_file_download_redirect()

Send 'em packin.

1 call to _uc_file_download_redirect()
_uc_file_download in uc_file/uc_file.pages.inc
Handles file downloading and error states.

File

uc_file/uc_file.pages.inc, line 382
File menu items.

Code

function _uc_file_download_redirect($uid = NULL) {

  // Shoo away anonymous users.
  if ($uid == 0) {
    drupal_access_denied();
  }
  else {
    if (!headers_sent()) {
      drupal_goto('user/' . $uid . '/purchased-files');
    }
  }
}