You are here

function lingotek_rules_event_info in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.5 lingotek.rules.inc \lingotek_rules_event_info()
  2. 7.6 lingotek.rules.inc \lingotek_rules_event_info()

Implements hook_rules_event_info().

File

./lingotek.rules.inc, line 245
Lingotek Module + Rules Module Integration

Code

function lingotek_rules_event_info() {
  $defaults = array(
    'group' => t('Lingotek'),
    'module' => 'lingotek',
  );
  return array(
    'lingotek_entity_pre_upload' => $defaults + array(
      'label' => t('Before an entity is uploaded'),
      'variables' => array(
        'entity' => array(
          'type' => 'entity',
          'label' => t('entity uploaded'),
        ),
      ),
    ),
    'lingotek_entity_post_upload' => $defaults + array(
      'label' => t('After an entity was uploaded'),
      'variables' => array(
        'entity' => array(
          'type' => 'entity',
          'label' => t('entity uploaded'),
        ),
      ),
    ),
    'lingotek_entity_translation_pre_download' => $defaults + array(
      'label' => t('Before a translation is downloaded (acting on source entity)'),
      'variables' => array(
        'entity' => array(
          'type' => 'entity',
          'label' => t('entity translation downloaded'),
        ),
      ),
    ),
    'lingotek_entity_translation_post_download' => $defaults + array(
      'label' => t('After a translation was downloaded (acting on translated entity)'),
      'variables' => array(
        'entity' => array(
          'type' => 'entity',
          'label' => t('entity translation downloaded'),
        ),
      ),
    ),
    'lingotek_entity_translation_ready' => $defaults + array(
      'label' => t('A translation is ready for download'),
      'variables' => array(
        'entity' => array(
          'type' => 'entity',
          'label' => t('entity translation ready for download'),
        ),
      ),
    ),
  );
}