function comment_action_info

Implements hook_action_info().

File

modules/comment/comment.module, line 2535

Code

function comment_action_info() {
    return array(
        'comment_publish_action' => array(
            'label' => t('Publish comment'),
            'type' => 'comment',
            'configurable' => FALSE,
            'behavior' => array(
                'changes_property',
            ),
            'triggers' => array(
                'comment_presave',
                'comment_insert',
                'comment_update',
            ),
        ),
        'comment_unpublish_action' => array(
            'label' => t('Unpublish comment'),
            'type' => 'comment',
            'configurable' => FALSE,
            'behavior' => array(
                'changes_property',
            ),
            'triggers' => array(
                'comment_presave',
                'comment_insert',
                'comment_update',
            ),
        ),
        'comment_unpublish_by_keyword_action' => array(
            'label' => t('Unpublish comment containing keyword(s)'),
            'type' => 'comment',
            'configurable' => TRUE,
            'behavior' => array(
                'changes_property',
            ),
            'triggers' => array(
                'comment_presave',
                'comment_insert',
                'comment_update',
            ),
        ),
        'comment_save_action' => array(
            'label' => t('Save comment'),
            'type' => 'comment',
            'configurable' => FALSE,
            'triggers' => array(
                'comment_insert',
                'comment_update',
            ),
        ),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.