diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-22 18:55:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-22 18:55:45 +0000 |
commit | 9b4274e8c786ce8643b69447ba0b4d74ce84223f (patch) | |
tree | 70b8fcfd0200968f6e4cecf9ff04897d28a8a46f /modules/user/user.module | |
parent | e8d18e41fc25af8dad5746e5b3bd6982c2492c2e (diff) | |
download | brdo-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.module | 10 |
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() { |