You are here

function bakery_update_6004 in Bakery Single Sign-On System 6.2

Delete stray stub accounts left over by bug http://drupal.org/node/1033360.

File

./bakery.install, line 112

Code

function bakery_update_6004() {
  $return = array();
  $result = db_query("SELECT uid FROM {users} WHERE init LIKE 'bakery_temp/%' AND access = 0");
  while ($account = db_fetch_object($result)) {
    user_delete(array(), $account->uid);
  }
  return $return;
}