After node creation how do i add simple buttons to edit the field values ``I'm new to drupal,I'm trying a create a content type with some field values which the user can use to create the content for the content type.In the node_view i have added some markup html to create additional generated fields to the content type.Now i want to add few buttons for the user to change the values in my content.

I created a form in node_view hook with a submit button so when user clicks the button i get to modify the node's properties,but i dont understand how to pass the node_id to callback form handler.

Or In general what's the standard process to let users create content for content type with server generating the additional info for the content.

function mymod_node_view($node, $view_mode, $langcode) {
if ($node-&gt;type == 'app') 

$node-&gt;content['apikey'] = array(
        '#markup' =&gt; "&lt;strong&gt;Client Key&lt;/strong&gt; &lt;br/&gt; ".$key['client_key'] ." &lt;br/&gt; &lt;strong&gt;Client Secret&lt;/strong&gt; &lt;br/&gt;".$key['client_secret']."&lt;br/&gt; Node id". $node-&gt;nid.",",
        '#weight' =&gt; 10
    );

    $form = drupal_get_form('redirect_button_form');
    $node-&gt;content['redirect_button'] = $form;

function redirect_button_form($form, &amp;$form_submit) {
    $form['submit'] = array(
        '#type' =&gt; 'button',
        '#value' =&gt; t('Reset Key'),
       // '#callback' =&gt; 'my_special_btn_function',
    );



  $form['nid'] = array(
    '#value' =&gt; arg(1),
    '#type' =&gt; 'hidden'
);
}

function redirect_button_form_submit($form, &amp;$form_state) {

$nid=$form_state['input']['nid'];

drupal_set_message('The form has been created nodeid,'. $node-&gt;nid .',key reset');
The $node_id is blank as there is no value passed for it. In order to get node_id in the submit handler function, you should pass the node_id in the form. So pass the node id value as a hidden field in the form and get the value of hidden form element through $form_state of redirect_button_form_submit. In that way you can do it.
Example :
$form['node_id'] = array('#type' => 'hidden', '#value' => $nid);
Yes it is possible for you to edit $node->content['apikey'] if and only if it is saved in database. Create a new field as apikey in the content type and store it.
Hope it helps. Thanks.