function better_comments_reply_preview_cancel in Better Comments 7.2
Same name and namespace in other branches
- 7 better_comments.module \better_comments_reply_preview_cancel()
Cancel the reply preview.
1 string reference to 'better_comments_reply_preview_cancel'
- better_comments_menu in ./
better_comments.module - Implements hook_menu().
File
- ./
better_comments.module, line 434 - Better Comments provides option to configure the comment system.
Code
function better_comments_reply_preview_cancel($pid) {
// Append comment to parent wrapper.
$commands[] = ajax_command_remove('#comment-wrap-' . $pid . '> .indented-' . $pid);
return array(
'#type' => 'ajax',
'#commands' => $commands,
);
}