Fix for Them snippet causing problems with displaying a gmap on the same page

  1. function anglerschannel_preprocess_page(&$vars) {
  2.         if (arg(2)!='edit' && arg(1) !='add'){
  3.                 $vars['template_files'][] = "page-node-" . $vars['node']->type;
  4.         }
  5.         $vars['comments'] = $vars['comment_form'] = '';
  6.         if (module_exists('comment') && isset($vars['node'])) {
  7.                 $vars['comments'] = comment_render($vars['node']);
  8.                 $vars['comment_form'] = drupal_get_form('comment_form', array('nid' => $vars['node']->nid)); // offending line
  9.         }
  10. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.