Form alter in a specific content type
function ftf_product_form_node_form_alter(&amp;$form, $form_state) {

  if($form['#node']-&gt;type == 'YOUR_NODE_TYPE'){
    $products = db_select('ftf_product')-&gt;fields(NULL, array('pid', 'nid', 'name', 'font_ref', 'description', 'app', 'web', 'desktop',  'avangate_desktop', 'avangate_web', 'avangate_app'))-&gt;condition('nid', $form['nid']['#value'], '=');
    $result = $products-&gt;execute();
    foreach ($result as $record) {
      $defaults[] = $record;
    }

    if(empty($form_state['num_products'])) {
      $results = $products-&gt;countQuery()-&gt;execute()-&gt;fetchField();
      $form_state['num_products'] = $results;

      if($form_state['num_products']  == 0) {
        $form_state['num_products'] = 1;
      }
    }

    $form['products'] = array(
      '#type' =&gt; 'fieldset',
      '#title' =&gt; t('&lt;strong&gt;Typeface products&lt;/strong&gt;'),
      '#collapsible' =&gt; TRUE,
      '#collapsed' =&gt; (($defaults[$form_state['num_products']-1]-&gt;name &amp;&amp; !$_SESSION["collapse_typeface_product"])?TRUE:FALSE), 
      '#weight' =&gt; 5,
      '#tree' =&gt; TRUE,
      '#attributes' =&gt; array('class' =&gt; array('container-inline')),
      '#prefix' =&gt; '&lt;div id="participants"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;',
      '#suffix' =&gt; '&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;',
      '#description' =&gt; t('&lt;p style="color:grey"&gt;Create, edit and delete products here. To add or edit Typeface Price Factors please visit the &lt;a href="/admin/config/content/ftf_pricetable"&gt;admin section&lt;/a&gt;.&lt;/br&gt;&lt;/br&gt;&lt;/p&gt;'), 
    );
  }
}