How to get value of Textarea in node add form? In my node add form I have added one text area :

function mymodule_form_alter(&amp;$form, $form_state, $form_id) {
    if ($form_id == "contenttype_node_form") {
         if (!isset($node-&gt;nid) || isset($node-&gt;is_new)) {
             $form['extra']['#title'] = t('Title (Extra)');
             $form['extra']['#type'] = 'textarea';
             $form['extra']['#required'] = TRUE;
             $form['extra']['#cols'] = '15';
             $form['extra']['#resizable'] = FALSE;
             $form['extra']['#rows'] = '5';

             $form['#submit'][] = 'my_trans_submit';

        }
    }
}


function my_trans_submit(&amp;$form, &amp;$form_state){
  $swed_title = $form['extra']['#value'];
}


Above code display one textarea just after title field in my node form. I Need the value entered in this text-area when user click on save node and then I want to use that value and save translation by running node save function. I can get this on form submit, but at that time node is not created and nid is not available.

How can I get value entered by the users in the above textarea once the node is saved and the node ID will be available, allowing me to use node_save()? Do I have to use a form field? I was not using a form field as it creates a new entity table.
Shortly put, you need to do the following:


Use hook_form_alter, the way you do already
Use hook_node_submit, to update the field_title field on the node object, before it gets saved. In your hook implementation you will have access to both $form and $form_state, which should carry your custom textarea submitted value. Even if the nid is not there, your changes should still get stored in the new node.


Hope this helps!