You are here

function rb_comment_rules_action_info in Rules Bonus Pack 6

Implementation of hook_rules_action_info().

File

./rb_comment.module, line 12
Functions for extending comment management with Rules.

Code

function rb_comment_rules_action_info() {

  // Add the actions relevant for required core modules.
  $actions = array(
    'rb_comment_action_change_owner' => array(
      'label' => t('Change the comment owner'),
      'arguments' => array(
        'comment' => array(
          'type' => 'comment',
          'label' => t('Comment to update'),
        ),
        'account' => array(
          'type' => 'user',
          'label' => t('New comment author'),
        ),
      ),
      'module' => 'Rules Bonus: Comment',
    ),
  );
  return $actions;
}