Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
google_analytics
Commits
ea6a5a24
Commit
ea6a5a24
authored
Sep 14, 2010
by
hass
Browse files
#679404: warning: Parameter 1 to profile_load_profile()
parent
9b98e3a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
googleanalytics.module
googleanalytics.module
+3
-5
No files found.
googleanalytics.module
View file @
ea6a5a24
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment