I am using the code below to add a form to my node. This renders a page with the node and form on it. Apparently, the node is rendered with its title as a link. I would like to have the node's title without a link. So I tried to change $node->content
, but there seems to be no value that determines that the node title is a link. how do I change this with code?
$form = array();
$node = node_load(24)
$form['offer_form'] = array(
'#value' => drupal_get_form('dt_offer_entry_form', $node),
'#weight' => 10
);
$node->content = $form;
return node_view($node);
node.tpl.php
template. Often it is based upon whether it is a full page view vs a teaser view. Going in and creating a specific one just for this content type, eg,node--TYPE.tpl.php
(D7) ornode-TYPE.tpl.php
(D6), might be the quickest way to deal with this.node_view()
with different$view_mode
(D7) or$teaser
/$page
(D6) arguments to coerce different behavior if your theme supports it. api.drupal.org/api/drupal/modules%21node%21node.module/function/… for more info