PDA

View Full Version : Where is $bbuserinfo[attachmentextensions] created?


JamesAB
03-09-2009, 05:30 AM
I need to use a hook to modify the extensions listed in $bbuserinfo[attachmentextensions] found in the newpost_attachment template.

Maybe I'm blind, but I haven't been able to find where $bbuserinfo[attachmentextensions] is set. :confused:

Any help would be appreciated.

Thanks,
James

JamesAB
03-11-2009, 09:26 PM
I found it in functions.php in function cache_permissions

Unfortunately, I don't think I can use a hook to change how the string is first set. :confused:

I guess I'll have to use a hook to remove extensions from the string afterwards.