function _uc_file_download_redirect in Ubercart 7.3
Same name and namespace in other branches
- 6.2 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 442 - 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');
}
}
}