From f46e6626cd5274f1783fb2f6e0e776b8b43b1a5c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 16 Oct 2009 15:54:33 +0000 Subject: - Patch #440876 by Dave Reid, sun: reuse comment.module's anonymous cookie information. --- modules/contact/contact.pages.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/contact') diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc index 7248303d6..2855bec83 100644 --- a/modules/contact/contact.pages.inc +++ b/modules/contact/contact.pages.inc @@ -50,7 +50,7 @@ function contact_site_form($form, &$form_state) { if (!$user->uid) { $form['#attached']['library'][] = array('system', 'cookie'); - $form['#attached']['js'][] = drupal_get_path('module', 'contact') . '/contact.js'; + $form['#attributes']['class'][] = 'user-info-from-cookie'; } $form['#token'] = $user->uid ? $user->name . $user->mail : ''; @@ -178,7 +178,7 @@ function contact_personal_form($form, &$form_state, stdClass $recipient) { if (!$user->uid) { $form['#attached']['library'][] = array('system', 'cookie'); - $form['#attached']['js'][] = drupal_get_path('module', 'contact') . '/contact.js'; + $form['#attributes']['class'][] = 'user-info-from-cookie'; } $form['#token'] = $user->uid ? $user->name . $user->mail : ''; -- cgit v1.2.3