On the 'My Newsletter' profile tab, the settings for masquerade (module) and gigya (module) are showing up as well as the newsletter settings/checkbox.

I believe this is because simplenews is creating a form-id "user-profile-form" which is the same id used by the main account settings page and other modules add their settings to the account page by looking for 'user-profile-form' ID. Is there a way to change the My Newsletter form ID to something else so these other module settings don't appear? I'm not sure if there's a need to have it be the same form-id as the main account settings.

Comments

sutharsan’s picture

Project: Simplenews » Masquerade

This is caused by a fault in masquerade. And probably the same kind of fault in gigya module, but I only checked Masquerade. The hook_user implementation does not uses the $category and therefore adds its form element to every user profile category, account and newsletter. Simplenews does use category as it should. See http://api.drupal.org/api/function/hook_user/6

cerup’s picture

Thank you. I appreciate the quick reply.

I've fixed the issue in those modules and put in an issue on their pages so they're aware.

Thanks again!

xurizaemon’s picture

Title: My Newsletter profile Tab showing other module settings » Masquerade options appearing in other tabs of user edit screen
Version: 6.x-1.0 » 6.x-1.x-dev
Status: Active » Closed (duplicate)

This was a duplicate of #592558: control for list of users on all sub-tabs and it looks like the issue is fixed in DRUPAL-6--1 already as of 1.16.2.29.

Updating issue title for clarity anyway.

Fix should be in the 6.x-1.x-dev tarball until next stable comes out.