You are here

function video_rules_event_info in Video 7.2

Implements hook_rules_event_info() on behalf of the video module.

File

./video.rules.inc, line 20
rules integration for the video module

Code

function video_rules_event_info() {
  $defaults = array(
    'group' => t('Video'),
    'module' => 'video',
    'access callback' => 'rules_video_integration_access',
  );
  return array(
    'video_success' => $defaults + array(
      'label' => t('After video conversion success'),
      'variables' => array(
        'node' => array(
          'type' => 'node',
          'label' => t('video success'),
        ),
      ),
    ),
    'video_failed' => $defaults + array(
      'label' => t('After video conversion failed.'),
      'variables' => array(
        'node' => array(
          'type' => 'node',
          'label' => t('video failed'),
        ),
      ),
    ),
  );
  return $items;
}