You are here

function comment_edit_page in Drupal 7

Page callback for comment editing.

1 string reference to 'comment_edit_page'
comment_menu in modules/comment/comment.module
Implements hook_menu().

File

modules/comment/comment.module, line 1820
Enables users to comment on published content.

Code

function comment_edit_page($comment) {
  drupal_set_title(t('Edit comment %comment', array(
    '%comment' => $comment->subject,
  )), PASS_THROUGH);
  $node = node_load($comment->nid);
  return drupal_get_form("comment_node_{$node->type}_form", $comment);
}