Unsetting a field before hook_form_alter I have a field collection with two entity reference fields that I keep hidden on a node creation form. The reference fields in the hidden field collection are slowing down the page load time. I need to block the field collection from rendering at all. From what I understand it needs to happen before hook form alter. See Question - Does unset($form[&#39;field&#39;]); in hook_form_alter stop entity reference views select list queries from running?. Any help would really be appreciated!
In case this helps anyone - the hidden node reference fields that I have been using were having their lists of selectable nodes generated by views. I ended up using hook_views_query_alter to stop the view query from being run. Here's the code I put into my custom module:

/**                                                                             
 * Implements hook_views_query_alter().                                         
 *                                                                              
 * Disables node reference views. This drammatically  
 * speeds up performance.                                                       
 */                                                                             
 function mymodule_views_query_alter(&amp;$view, &amp;$query) {                         
  if ($view-&gt;name == "my_view") {                                               
    $view-&gt;executed = TRUE;                                                 
  }                       
  if ($view-&gt;name == "my_view2") {                                               
    $view-&gt;executed = TRUE;                                                
  }
 }