Add a hook for accessing profiles at IMCE load time

Created on 31 March 2014, over 10 years ago
Updated 5 September 2023, about 1 year ago

I am using IMCE (along with Plupload) as a bulk-file uploader for a custom entity type. The upload directory is dynamic - dependent upon the individual entity instance. In order to place the user in the proper directory when uploading, I found it necessary to modify the user's IMCE profile at runtime. I looked at several ways to do this, including stuffing a dynamic profile (and roles_profile) into the $conf array (or doing a variable_set() - but that would have beaucoup security issues). The best way I could find was to add an alter hook to allow the profiles and roles_profiles arrays to be modified just before use, in imce_user_profile(), optionally using on the active uri scheme as well.

Feature request
Status

Closed: won't fix

Version

1.8

Component

Code

Created by

🇺🇸United States jmarkel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024