Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Yes I am using colorbox plugin. And also disabled preview option on content type edit page but still the preview button is visible. This might be because of the code I have used to print comment form. Hope it will help you. print drupal_render(drupal_get_form("comment_node_node_gallery_item_form", (object) array('nid' =>$row->nid))); print render($content['comments']['comment_form']); Commented Jul 16, 2014 at 5:52
  • Have a look at the EDIT#1. This may help you. Commented Jul 16, 2014 at 6:30
  • Yes its working fine for some extent that is at the place of preview button now its displaying submit button which is working absolutely fine. Thanks Aneek, But after commenting its redirecting user to the node page of the image. Commented Jul 21, 2014 at 11:19