I have some data that has been input into a table by various users, I'd like to take the UIDs from the table and map them to usernames.
I tried using $user->uid but that's silly because that gives me the current logged on users uid (usually mine).
I could I suppose, have the $user->username input along with the inserted data, but I thought it more elegant to grab the username from the main system rather than duplicate data in this way.
I have been trying to retrieve $form_values when submit function is called for a form when #type => 'file'. But form.inc does some convoluted and confusing transformation of $form_values when form type is 'file'.
form.inc line 660 :