function comment_action_info in Drupal 6
Same name and namespace in other branches
- 7 modules/comment/comment.module \comment_action_info()
Implementation of hook_action_info().
File
- modules/
comment/ comment.module, line 2032 - Enables users to comment on published content.
Code
function comment_action_info() {
return array(
'comment_publish_action' => array(
'description' => t('Publish comment'),
'type' => 'comment',
'configurable' => FALSE,
'hooks' => array(
'comment' => array(
'insert',
'update',
),
),
),
'comment_unpublish_action' => array(
'description' => t('Unpublish comment'),
'type' => 'comment',
'configurable' => FALSE,
'hooks' => array(
'comment' => array(
'insert',
'update',
),
),
),
'comment_unpublish_by_keyword_action' => array(
'description' => t('Unpublish comment containing keyword(s)'),
'type' => 'comment',
'configurable' => TRUE,
'hooks' => array(
'comment' => array(
'insert',
'update',
),
),
),
);
}