Skip to content
Snippets Groups Projects
Commit 346cdfa1 authored by Tim Steiner's avatar Tim Steiner
Browse files

In the UNL Profile, all non-anonymous roles will use the User-1 IMCE profile.

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@188 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent ebd5814b
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,25 @@ function unl_profile_install()
module_disable(array('overlay'));
//TODO: IMCE setup (currently cannot be shared between sites)
// IMCE setup (currently cannot be shared between sites)
// We set every role but the anonymous role to use the "User-1" profile.
$roles = array();
foreach (user_roles() as $role_id => $role) {
if ($role_id == DRUPAL_ANONYMOUS_RID) {
$roles[$role_id] = array(
'public_pid' => 0,
'temporary_pid' => 0
);
} else {
$roles[$role_id] = array(
'public_pid' => 1,
'temporary_pid' => 1
);
}
}
krsort($roles);
variable_set('imce_roles_profiles', $roles);
// End IMCE setup.
// Update the settings file to use shared database tables (unless this is the default site)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment