Field collection - Delete "Remove button" on line I need to delete the "Remove button" on every edit field collection for specific role users. I have 3 roles (Admin, Project, Test). Just Admin and project can see the "delete" button and "add" button to remove lines or add a new line. The others roles are not allowed to delete or add new line in the field collection. 

I tried to change some permissions (Administer field collections - Create and delete fields on field collections.) But it didn't work...

I need to use HOOK ? or maybe just JQuery ?

To complete my explication, here an example :



Thanks

PS : "Supprimer" = "Remove"
Write following code in your theme template.php file. It will added css classes to body of a specfic page.

    &lt;?php 

    function hook_preprocess_html(&amp;$variables) {
      global $user;
      $args = arg();

        if( isset($args[0]) &amp;&amp; ($args[0] ==  'your-page-url-first-argument')){ // Check ur page url parameters
        $account = user_load($user-&gt;uid);
        if(in_array("test", $account-&gt;roles)){
          $variables['classes_array'][] = 'test_user';
        }
      }?&gt;


CSS: 

.test_user [remove_button_class/id] {

  display:none

}