27 Jan
2006
27 Jan
'06
10:29 a.m.
It sounds like this would be a valuable asset to core (post 4.7 please :))
function module_user($op, &$edit, &$user) { switch ($op) { case 'insert' : $edit['roles'][_user_get_rid('administrator')] = ''; $edit['roles'] = array_flip(array_keys($edit['roles'])); // I am not sure it's strictly necessary, but it maintains the format that the modules are expecting, so it can't hurt break; } }
Bèr -- [ Bèr Kessels | Drupal services www.webschuur.com ]