6.x comment.module comment_action_info()
7.x 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',
        ),
      ),
    ),
  );
}