From 9b4274e8c786ce8643b69447ba0b4d74ce84223f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 22 Mar 2010 18:55:45 +0000 Subject: - Patch #742366 by moshe weitzman: better UX for OpenID users. --- modules/user/user.module | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/user') diff --git a/modules/user/user.module b/modules/user/user.module index ac92802cf..59241c3f2 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -3463,6 +3463,16 @@ function user_cookie_save(array $values, array $fields = array('name', 'mail', ' } } +/** + * Delete a visitor information cookie. + * + * @param $cookie_name + * A cookie name such as 'homepage'. + */ +function user_cookie_delete($cookie_name) { + setrawcookie('Drupal.visitor.' . $cookie_name, '', REQUEST_TIME - 3600, '/'); +} + /** * Implements hook_rdf_mapping(). */ -- cgit v1.2.3