function comment_rules_action_info in Rules 6
Implementation of hook_rules_action_info().
Related topics
File
- rules/
modules/ comment.rules.inc, line 111 - rules integration for the comment module
Code
function comment_rules_action_info() {
return array(
'rules_action_load_comment' => array(
'label' => t('Load comment by id'),
'arguments' => array(
'cid' => array(
'type' => 'number',
'label' => t('Comment id'),
'required' => TRUE,
),
),
'new variables' => array(
'comment_loaded' => array(
'type' => 'comment',
'label' => t('Loaded comment'),
'label callback' => 'rules_action_load_comment_variable_label',
),
),
'module' => 'Comment',
),
);
}