How to make only certain fields show up in an Audio node's form
krogroog - March 27, 2008 - 21:51
I have a site where a user can add Audio nodes through e-mail using Mailhandler and Mailsave. I want a user to be able to later edit the Location of sounds he/she has posted, but I don't want non-admin users to be able to edit the "Audio Metadata" section or to use "Replace this with a new file" in the "Audio File Info" section.
I don't really see anything relevant in the Theme Snippets section of Drupal's website - does anyone know how to do this?

p.s.
I also don't want users to be able to create their own Audio nodes, except by going through Mailhandler/Mailsave. Problem is, the "create audio nodes" access control option determines whether a user can add an Audio node both through www.example.com/node/add/audio and through Mailsave. Should I just count on the ignorance of the general user to not know about node/add/audio ?
Article
You can modify the form in the theme layer or in a custom module. I recently wrote an article with some examples: http://www.lullabot.com/articles/modifying-forms-5-and-6 . You can add an if check around the modifications that see if the user is an admin or not.
Lullabot loves you | Be a Ninja, join the Drupal Dojo
Thanks a lot, I'll look
Thanks a lot, I'll look through that.