Add the option to disable the meta tags editing for users
malc_b - April 26, 2009 - 16:40
| Project: | Nodewords |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
| Issue tags: | 6.x-1.0 |
Jump to:
Description
When edit meta tags is enabled the user also sees edit meta tags on the account pages where they edit their username, password etc.. With normal content then admin can turn off editing of meta tags in the content type but there seems no way to turn it off for user account pages. Meta tags on these pages does not make a lot of sense anyway since only the user sees those pages not searches engines. I think meta tags should be restricted just to nodes (and views).

#1
While this isn't the most elegant way, creating a module with this in it will fix your problem:
function MODULENAME_form_user_profile_form_alter(&$form, &$form_state){
unset($form['nodewords']);
}
Hope this helps.
#2
Search engines can see also the user profiles pages, if the anonymous user has the access user profiles permission.
This is more a feature request. I will value it.
#3
The code has been changed for version 6.x-1.x-dev, and committed in CVS.
#4
The meta tags fieldset is still visible in the user profile pages to the users with administer users permission; those users can still set the user meta tags, but their value will not be used when the user meta tags are not enabled.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.
#6
This is not working for me.
I added the above code in my css, any ideas?
#7
There is nothing reported here that should be added to a CSS file; what you see is PHP code.
#8
Oh I see, where do I add this php code?
#9
As the code has been already added in the development snapshot, there is no code to add (click on "View all the releases" to see the link to version 6.x-1.x-dev).
#10
I am adding a tag to track the differences between version 6.x-1.0 and version 6.x-1.1-beta1.