In one content type, I want to get rid of the "Remove" button on file uploads. Anyone have an idea?
This can be removed with CSS, or (even better) by over riding the field template in the theme.
On Fri, Aug 29, 2014 at 2:46 PM, Nancy Wichmann nan_wich@bellsouth.net wrote:
In one content type, I want to get rid of the "Remove" button on file uploads. Anyone have an idea?
-- [ Drupal support list | http://lists.drupal.org/ ]
Another option is using hook_form_alter (or hook_form_FORM_ID_alter) to remove the button.
On Aug 29, 2014, at 11:51 AM, Patrick Avella me@patrickavella.com wrote:
This can be removed with CSS, or (even better) by over riding the field template in the theme.
On Fri, Aug 29, 2014 at 2:46 PM, Nancy Wichmann nan_wich@bellsouth.net wrote: In one content type, I want to get rid of the "Remove" button on file uploads. Anyone have an idea?
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
As a CSS solution you can add a class or wrapping div via the template layer depending on how the user is logged in (this requires some PHP code). CSS will not prevent other web developers from gaining access.
There is the alternative of creating a new content type that only admin's have delete permission to and using something like node_embed.
I hope this helped.
On Fri, Aug 29, 2014 at 3:25 PM, Steve Edwards killshot91@gmail.com wrote:
Another option is using hook_form_alter (or hook_form_FORM_ID_alter) to remove the button.
On Aug 29, 2014, at 11:51 AM, Patrick Avella me@patrickavella.com wrote:
This can be removed with CSS, or (even better) by over riding the field template in the theme.
On Fri, Aug 29, 2014 at 2:46 PM, Nancy Wichmann nan_wich@bellsouth.net wrote:
In one content type, I want to get rid of the "Remove" button on file uploads. Anyone have an idea?
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
It doesn't seem to be there. I'm guessing it's buried in the render code somewhere.
From: Steve Edwards killshot91@gmail.com
Another option is using hook_form_alter (or hook_form_FORM_ID_alter) to remove the button.