1 reply [Last post]
setfree's picture
Offline
Uber Donor
Joined: 12/16/2007
Juice: 436
Was this information Helpful?

While trying to customize the file download table on the user's page I found this hook theme_uc_file_hook_user_file_downloads. However, I wasn't able to override this hook in my template and a search for this hook found only one reference on the site and it was someone having the same problem. There isn't even an API reference.

Some research found that the table is being output by the function uc_file_user_downloads() in uc_file.pages.inc.

Was the original hook moved into this new function and never removed as it appears, or am I missing a purpose for it somewhere?

On a second note: all I needed to do was remove a column (addresses) from the table. Since the table isn't build from the theme_hook, I had to resort to a quick core hack for now.

Is there any way to remove a column from the user file table in a clean way?

* Sorry, if this isn't a bug.

royerd's picture
Offline
Joined: 01/22/2008
Juice: 293
I had to comment out some

I had to comment out some lines in the ubercart/uc_file/uc_file.pages.inc
in order to eliminate columns from the downloads table. It's not possible to
intercept this function as a theme function because the table header and table
columns are not both part of the theme function (even though the second group has the
name "function")