Index: flag.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/flag/Attic/flag.module,v retrieving revision 1.11.2.72.2.31 diff -u -p -r1.11.2.72.2.31 flag.module --- flag.module 8 Jan 2010 05:17:57 -0000 1.11.2.72.2.31 +++ flag.module 29 Apr 2010 12:57:58 -0000 @@ -447,27 +447,6 @@ function flag_nodeapi(&$node, $op, $teas */ function flag_user($op, &$edit, &$account, $category = NULL) { switch ($op) { - case 'login': - // Migrate anonymous flags to this user's account. - if (module_exists('session_api')) { - // The @ symbol suppresses errors if the user flags a piece of content - // they have already flagged as a logged-in user. - @db_query("UPDATE {flag_content} SET uid = %d, sid = 0 WHERE uid = 0 AND sid = %d", $account->uid, flag_get_sid(0)); - // Delete any remaining flags this user had as an anonymous user. - db_query("DELETE FROM {flag_content} WHERE uid = 0 AND sid = %d", flag_get_sid(0)); - // Clean up anonymous cookies. - if (isset($_COOKIE['flags'])) { - setcookie('flags', FALSE, 0, base_path()); - unset($_COOKIE['flags']); - } - foreach ($_COOKIE as $key => $value) { - if (strpos($key, 'flag_global_') === 0) { - setcookie($key, FALSE, 0, base_path()); - unset($_COOKIE[$key]); - } - } - } - break; case 'delete': // Remove flags by this user. $result = db_query("SELECT fc.fid, fc.content_id, c.count FROM {flag_content} fc LEFT JOIN {flag_counts} c ON fc.content_id = c.content_id AND fc.content_type = c.content_type WHERE fc.uid = %d", $account->uid);