Creating a region in a Drupal 6 node
Hello, I am having trouble creating a region in a node, and I seek your help, Jedi Dru =) I've done a lot of Googling, and the answer is always the same: I need to add the function
function Name_preprocess_node(&$vars, $hook) {
$vars['region_name'] = theme('blocks', 'region_name');
}
Logically, everything should work, but the server loudly complains that I already have a similar function and cannot override it. It is complaining about this function:
function W_preprocess_node(&$vars) {
$vars['template_files'] = array();
$vars['template_files'][] = 'node';
if (drupal_is_front_page()) {
$vars['template_files'][] = 'node-front';
}
if ($vars['page']) {
$vars['template_files'][] = 'node-page';
$vars['template_files'][] = 'node-'.$vars['node']->type.'-page';
$vars['template_files'][] = 'node-'.$vars['node']->nid.'-page';
} else {
$vars['template_files'][] = 'node-'.$vars['node']->type;
$vars['template_files'][] = 'node-'.$vars['node']->nid;
if ($vars['teaser']) {
$vars['template_files'][] = 'node-'.$vars['node']->type.'-teaser';
$vars['template_files'][] = 'node-'.$vars['node']->nid.'-teaser';
}
}
}
What should I do? How can I create a region in the node after all? :)