I am using the following code in a custom module to get the title of the node form in the node creation form, i.e, if i add a new content of type BLOG then on top of that node_add_blog form i get a heading/title "Create New BLOG". SO for this i got a custom module from this very forum (kudos). Now i want to know how can i place the output in a specific region, say as the right sidebar.
<?php
/**
* Implements hook_form_BASE_FORM_ID_alter().
*/
function show_title_form_node_form_alter(&$form, &$form_state, $form_id) {
// For the node add form.
//<pre
//<?php /** print_r($form);*/?>
//</pre>
//<?php
if (!$form['nid']['#value']) {
// Add "new" to the page title.
$node_types = node_type_get_names();
var_dump($node_types[$form['#node']->type]);
drupal_set_title(t('Create new @type', array('@type' => $node_types[$form['#node']->type])));
echo "Create"." ".$node_types[$form['#node']->type];
;
}
Regards