Révision 6eb8d15f
Ajouté par Assos Assos il y a presque 10 ans
drupal7/sites/all/modules/imce/imce.install | ||
---|---|---|
101 | 101 |
db_drop_table('imce_files'); |
102 | 102 |
return t('Migrated IMCE files.'); |
103 | 103 |
} |
104 |
} |
|
105 |
|
|
106 |
/** |
|
107 |
* Fixes misconfigurations where anonymous user is given User-1 profile |
|
108 |
*/ |
|
109 |
function imce_update_7002() { |
|
110 |
$roles = variable_get('imce_roles_profiles', array()); |
|
111 |
$rid = DRUPAL_ANONYMOUS_RID; |
|
112 |
if (!empty($roles[$rid])) { |
|
113 |
$update = FALSE; |
|
114 |
foreach ($roles[$rid] as $key => $value) { |
|
115 |
if ($value == 1 && substr($key, -4) == '_pid') { |
|
116 |
$roles[$rid][$key] = '0'; |
|
117 |
$update = TRUE; |
|
118 |
} |
|
119 |
} |
|
120 |
if ($update) { |
|
121 |
variable_set('imce_roles_profiles', $roles); |
|
122 |
} |
|
123 |
} |
|
104 | 124 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules