Thanks for the reply MPFF, forgive me if I misunderstand but it seems to me your are suggesting I do an sql query to retreive the data I want every time the hook is run. Rather than running another query I was hoping I would be able to hook into the original page query results.
Here is the skin code I am hooking into on Global->userInfoPane...
<if test="authorcfields:|:$author['custom_fields'] != """>
<foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">
<foreach loop="customFields:$author['custom_fields'][ $group ] as $field">
<if test="$field != ''">
<li>
{$field}
</li>
</if>
</foreach>
</foreach>
</if>
Literally all I need is a single custom field entry from here passed to my hook. If I query every member when the hook is run then that will result in many extra sql queries per page view. All I want to do is pass that specific custom field to the hook...
That said, I'm going to try the above and see if it mysteriously references the current member and populates the array without needing to do anything, although I don't see how it would without running another query or passing some sort of reference from within a hook call.
Really appreciate the advice, I've been coding PHP for a good while but this is a complicated beast with little documentation :P
Cheers!