/** * Edit comment. * @param $commentId int */ function editComment($article, $comment) { if (!HookRegistry::call('Action::editComment', array(&$article, &$comment))) { import('classes.submission.form.comment.EditCommentForm'); $commentForm = new EditCommentForm($article, $comment); $commentForm->initData(); $commentForm->display(); } }
/** * Edit comment. * @param $commentId int */ function editComment($paper, $comment, $reviewId) { if (!HookRegistry::call('ReviewerAction::editComment', array(&$paper, &$comment, &$reviewId))) { import("submission.form.comment.EditCommentForm"); $commentForm = new EditCommentForm($paper, $comment); $commentForm->initData(); $commentForm->setData('reviewId', $reviewId); $commentForm->display(array('reviewId' => $reviewId)); } }
/** * Edit comment. * @param $commentId int */ function editComment($paper, $comment) { if (!HookRegistry::call('Action::editComment', array(&$paper, &$comment))) { import("submission.form.comment.EditCommentForm"); $commentForm = new EditCommentForm($paper, $comment); $commentForm->initData(); $commentForm->display(); } }