function comment_delete_reply_actions in Comment Delete 6
Determin what reply actions the current user can take.
1 call to comment_delete_reply_actions()
- comment_delete_form in ./
comment_delete.module - Confirmation form for deleting a comment.
File
- ./
comment_delete.module, line 77
Code
function comment_delete_reply_actions() {
if (user_access('delete all comment replies')) {
$actions[0] = t('Delete all replies of the comment');
}
if (user_access('move all replies up')) {
$actions[1] = t('Move all replies up one level');
}
$actions[2] = t('Delete only the comment, or it\'s text and the subject if it has replies');
return $actions;
}