Skip to content

Instantly share code, notes, and snippets.

@grammaticof
Created November 29, 2012 11:12
Show Gist options
  • Save grammaticof/4168277 to your computer and use it in GitHub Desktop.
Save grammaticof/4168277 to your computer and use it in GitHub Desktop.
Drupal - move the comments
<?php
function phptemplate_preprocess_page(&$vars) {
$vars['comments'] = $vars['comment_form'] = '';
if (module_exists('comment') && isset($vars['node'])) {
$vars['comments'] = comment_render($vars['node']);
$vars['comment_form'] = drupal_get_form('comment_form', array('nid' => $vars['node']->nid));
}
}
function phptemplate_preprocess_node(&$vars) {
$vars['node']->comment = 0;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment