Commit 46549e26 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

debugging commit, to work out when createuser is called

parent 2e79b021
......@@ -411,9 +411,14 @@ function activity_get_users($activitytype, $userids=null, $userobjs=null, $admin
* id
*/
function activity_set_defaults($user_id) {
global $USER;
log_debug($USER);
log_debug($user_id);
$activitytypes = get_records_array('activity_type', 'admin', 0);
foreach ($activitytypes as $type) {
$USER->set_activity_preference($type->name, 'internal');
log_debug('set ' . $type . ' for ' . $user_id);
}
}
......
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