Print array in field value
It's recommended to use #default_value instead of #value.

You have to use property of object instead of whole object. For example $dval-&gt;body.

$form['display_result'] = array(
    '#title' =&gt; t('Result'),
    '#type' =&gt; 'textarea',
    '#default_value' =&gt; !empty($dval-&gt;body) ? $dval-&gt;body : '',
  );