I have found out that the Piwik configuration fieldset, which allows a user to set the Piwik authentication string, appears in the profile under all user edit tabs. If it is desired to have just one such fieldset, I propose this patch which allows the fieldset to appear only in the main user edit form.

Comments

hass’s picture

It should only be shown in user edit page. Where is it also shown? URL?

kunago’s picture

StatusFileSize
new64.67 KB

I am using the Instant messenger module (http://drupal.org/project/im) which adds a tab under the user edit called "IM Alert Settings". And the Piwik configuration fieldset also appears there.

Both conditions are being fulfilled (the form_id is user_profile_form which it apparently is, and the user has the privilege to administer the piwik reports).

In the attached screenshot you can see the Piwik configuration fieldset in the IM Alert Settings tab. The URL is then /?q=user/3/edit/im_sound

hass’s picture

Project: Piwik Web Analytics » Instant messenger
Version: 6.x-1.1 » 6.x-1.x-dev

Should be a bug if IM. Not sure why it use the same form name like the node edit page...

hass’s picture

Title: Piwik reports configuration in the profile » Improper form altering in user profile
kunago’s picture

Yes, you were right. IM seems to be the one to blame. Apologies.

I checked the code and the question is whether a new user category is essential in order to set the sounds. I modified the code just to leave the sound settings in the user account form.

kunago’s picture

StatusFileSize
new742 bytes
hass’s picture

Status: Active » Needs review