using the hook_nodeapi in the view mode I am trying to add a form when I view my node; for that I am using the following code.

function review_m_nodeapi(&amp;$node, $op, $a3 = NULL, $a4 = NULL){
    switch($op){
        case view:


In this case I would like to call drupal_get_form().

I would like to add the following code.

function review_m_form($node) {
    $form = array();
    $form['mark'] = array(
        '#type' =&gt; 'textfield',
        '#title' =&gt; 'Give a mark to the content type(1 to 10)!',
        '#size' =&gt; 60,
        '#maxlength' =&gt; 2,
    );
    $form['text'] = array(
        '#type' =&gt; 'textarea',
        '#title' =&gt; 'leave a feedback!',
        '#cols' =&gt; 60,
        '#resizable' =&gt; FALSE,
        '#rows' =&gt; 5,
    );
    $form['created'] = array(
        '#type' =&gt; 'textfield',
        '#title' =&gt; 'Enter the date!',
        '#size' =&gt; 60,
        '#maxlength' =&gt; 10,
    );
    $form['submit'] = array(
        '#type' =&gt; 'submit',
        '#value' =&gt; t('Send review'),
        '#weight' =&gt; 10,
    );
    return $form;
}


How can I pass this in the view case, so that it works good for me?

I am trying something like the following code. 

case view:
            $node-&gt;content['form'] = array(
                drupal_get_form('review_m_form'),
              );
You're missing the first required variable in the signature of your form declaration so things will never work quite as you're expecting.

The function signature should be:

function review_m_form(&amp;$form_state, $node) {


Then you would attach it to your node content like so, remembering to pass the node as a parameter:

$node-&gt;content['form'] = drupal_get_form('review_m_form', $node);