1 comment.module | comment_action_info() |
Implements hook_action_info().
File
- core/
modules/ comment/ comment.module, line 2294 - Enables users to comment on published content.
Code
function comment_action_info() {
return array(
'comment_publish_action' => array(
'label' => t('Publish comment'),
'type' => 'comment',
'callback' => 'comment_publish_action',
),
'comment_unpublish_action' => array(
'label' => t('Unpublish comment'),
'type' => 'comment',
'callback' => 'comment_unpublish_action',
),
);
}