Commit 91e26085 authored by Nigel McNie's avatar Nigel McNie
Browse files

[#2984] Rename groups to have '.deleted.timestamp' after their name when they're deleted.

parent a6bcf6a8
......@@ -331,7 +331,15 @@ function group_has_members($groupid) {
}
function delete_group($groupid) {
update_record('group', array('deleted' => 1), array('id' => $groupid));
update_record('group',
array(
'deleted' => 1,
'name' => get_field('group', 'name', 'id', $groupid) . '.deleted.' . time(),
),
array(
'id' => $groupid,
)
);
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment