I want to hide certain elements in form using form_alter or a template file. I have read somewhere that in Drupal 7 , we can specify $form elements so it will not display in form, but I can't remember! Not unset() but some other function!
#update CODE used in custom-form tpl
<?php
echo drupal_render($form['title']);
echo drupal_render($form['body']);
echo drupal_render($form['uc_product_image']);
echo drupal_render($form['base']['prices']['sell_price']);
?>
<div style="display:none"><?php print drupal_render_children($form); ?></div>
I can save the node with changes in titlt,body or image, but not sell_price!