protected function OgMigrateUserRoles::postImport in Organic groups 7.2
Override Migration::postImport().
Remove the global roles. We didn't do so it in OgMigrateRoles as we need it in this class, when calling og_roles(). Also, delete legacy tables.
Overrides Migration::postImport
File
- includes/
migrate/ 7200/ og_user_roles.migrate.inc, line 98 - Update the group ID in user roles.
Class
- OgMigrateUserRoles
- @file Update the group ID in user roles.
Code
protected function postImport() {
if (!$this
->isComplete() || !$this->defaultRoles) {
return;
}
parent::postImport();
foreach (array_keys($this->defaultRoles) as $rid) {
og_role_delete($rid);
}
}