function community_tags_rules_rules_event_info in Community Tags 6.2
Implementation of hook_rules_event_info().
File
- community_tags_rules/
community_tags_rules.rules.inc, line 15 - community_tags_rules.rules.inc
Code
function community_tags_rules_rules_event_info() {
return array(
'community_tags_tagged' => array(
'label' => t('User tags node with term'),
'module' => 'Community Tags',
'arguments' => array(
'user' => array(
'type' => 'user',
'label' => t('The user who tags the node with a term.'),
),
'node' => array(
'type' => 'node',
'label' => t('The node which the user tags with a term.'),
),
'term' => array(
'type' => 'taxonomy_term',
'label' => t('The term with which the user tags the node.'),
),
'ctag' => array(
'type' => 'community_tag',
'label' => t('The community tag'),
'handler' => 'community_tags_rules_argument_handler_ctag',
),
),
),
'community_tags_untagged' => array(
'label' => t('User removes their tag from node'),
'module' => 'Community Tags',
'arguments' => array(
'user' => array(
'type' => 'user',
'label' => t('The user who removes their tag from the node.'),
),
'node' => array(
'type' => 'node',
'label' => t('The node from which the user removes their tag.'),
),
'term' => array(
'type' => 'taxonomy_term',
'label' => t('The term of the tag the user removes from the node.'),
),
),
),
);
}