summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhass2010-09-14 21:52:35 (GMT)
committer hass2010-09-14 21:52:35 (GMT)
commitea6a5a24482c827444a9d45ad381e5be85502bf2 (patch)
treee71eeac084533fef36db52997a3fc1b740481176
parent9b98e3a240c42c2b9af765361f233f9e708eeddc (diff)
#679404: warning: Parameter 1 to profile_load_profile()
-rw-r--r--googleanalytics.module8
1 files changed, 3 insertions, 5 deletions
diff --git a/googleanalytics.module b/googleanalytics.module
index 370af49..a589a35 100644
--- a/googleanalytics.module
+++ b/googleanalytics.module
@@ -86,11 +86,9 @@ function googleanalytics_footer($main = 0) {
// Add User profile segmentation values.
$profile_fields = variable_get('googleanalytics_segmentation', array());
- if (!empty($profile_fields) && ($user->uid > 0)) {
- // Invoke all modules having a hook_user_load() implemented.
- // If the invoked modules extend the $user object, the additional
- // data can be tracked.
- module_invoke_all('load_profile', $user);
+ if (module_exists('profile') && !empty($profile_fields) && ($user->uid > 0)) {
+ // Extend the $user object with profile data.
+ profile_load_profile($user);
$fields = array();
foreach ($profile_fields as $field => $title) {