Is there a way to override the Common Settings (admin/config/media/imce) on a per Configuration Profile basis? I would like to have one profile overwrite same name files and another rename.

Comments

ufku’s picture

That's a global variable named 'imce_settings_replace'. You may change it in a custom module or in your theme's template.php by checking the role or permissions of the current user.

// Allow overwrite for role ID = 3
if (isset($GLOBALS['user']->roles[3])) {
  $GLOBALS['conf']['imce_settings_replace'] = FILE_EXISTS_REPLACE;
  // Or set it to rename
  // $GLOBALS['conf']['imce_settings_replace'] = FILE_EXISTS_RENAME;
}
fullerja’s picture

Would you consider a patch to make this functionality part of the module?

ufku’s picture

No. It's not a commonly requested feature (yet). You should use the workaround.

thalles’s picture

Issue summary: View changes

I think this is resolved!

thalles’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.