Same name and namespace in other branches
  1. 7.x 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',
        ),
      ),
    ),
  );
}