Remove links in admin content list form In the admin content form (admin/content), I am trying to remove links to content page on some content types in a custom module with the following code but I can't get it working. 

/**
* Implements hook_form_node_admin_content_alter()
 */
function MYMODULE_veilleur_form_node_admin_content_alter(&amp;$form, &amp;$form_state, $form_id) {
    foreach ($form['admin']['nodes']['#options'] as $option){
      if($option['type'] == "Document"){
        $option['title']['data']['#type'] = "text";
        unset($option['title']['data']['#href']);
      }
    }
}


With this code, I still have the links in the content title. Any idea?
Sorry, it is my fault, I forgot to use the "&amp;" to pass the reference variable in the loop. Here is the final code : 

/**
* Implements hook_form_node_admin_content_alter()
 */
function MYMODULE_veilleur_form_node_admin_content_alter(&amp;$form, &amp;$form_state, $form_id) {
    foreach ($form['admin']['nodes']['#options'] as &amp;$option){
      if($option['type'] == "Document"){
        $option['title'] = $option['title']['data']['#title'];
      }
    }
}