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.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | im.module.diff | 742 bytes | kunago |
| #2 | screenshot.jpg | 64.67 KB | kunago |
| piwik_reports.module.diff | 654 bytes | kunago |
Comments
Comment #1
hass commentedIt should only be shown in user edit page. Where is it also shown? URL?
Comment #2
kunago commentedI 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
Comment #3
hass commentedShould be a bug if IM. Not sure why it use the same form name like the node edit page...
Comment #4
hass commentedComment #5
kunago commentedYes, 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.
Comment #6
kunago commentedComment #7
hass commented