function comment_action_info
Same name and namespace in other branches
- 7.x drupal-7.x/modules/comment/comment.module \comment_action_info()
Implementation of hook_action_info().
Archivo
- drupal-6.x/
modules/ comment/ comment.module, line 2032 - Enables users to comment on published content.
Código
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'),
),
),
);
}