summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-22 18:55:45 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-22 18:55:45 +0000
commit9b4274e8c786ce8643b69447ba0b4d74ce84223f (patch)
tree70b8fcfd0200968f6e4cecf9ff04897d28a8a46f /modules/user/user.module
parente8d18e41fc25af8dad5746e5b3bd6982c2492c2e (diff)
downloadbrdo-9b4274e8c786ce8643b69447ba0b4d74ce84223f.tar.gz
brdo-9b4274e8c786ce8643b69447ba0b4d74ce84223f.tar.bz2
- Patch #742366 by moshe weitzman: better UX for OpenID users.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module10
1 files changed, 10 insertions, 0 deletions
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
@@ -3464,6 +3464,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().
*/
function user_rdf_mapping() {