Re: Get rid of file "remove" button.

Patrick Avella <[email protected]> Fri, 29 Aug 2014 15:36:37 -0400
Newsgroups gmane.comp.php.drupal.support
Message-ID <CAH2xO7xic94ETiMXV6hNRSJBg9Vq2rORLD7+8LDE2ShNA4tt3A@mail.gmail.com>
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 <[email protected]> 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 <[email protected]> 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 <[email protected]>
> 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/ ]
>

-- 
[ Drupal support list | http://lists.drupal.org/ ]