You are here

function taxonomy_rules_event_info in Rules 6

Implementation of hook_rules_event_info().

Related topics

File

rules/modules/taxonomy.rules.inc, line 14
Rules integration for the taxonomy module.

Code

function taxonomy_rules_event_info() {
  return array(
    'taxonomy_term_insert' => array(
      'label' => t('After saving a new term'),
      'module' => 'Taxonomy',
      'arguments' => rules_events_hook_taxonomy_term_arguments(t('created term')),
    ),
    'taxonomy_term_update' => array(
      'label' => t('After updating a term'),
      'module' => 'Taxonomy',
      'arguments' => rules_events_hook_taxonomy_term_arguments(t('updated term'), TRUE),
    ),
  );
}