You are here

function download_count_rules_event_info in Download Count 8

Same name and namespace in other branches
  1. 6.2 download_count.module \download_count_rules_event_info()
  2. 7.3 download_count.rules.inc \download_count_rules_event_info()

Implements hook_rules_event_info().

File

./download_count.rules.inc, line 11
Rules specific functions for the download_count module.

Code

function download_count_rules_event_info() {
  return [
    'download_count_file_download' => [
      'group' => t('Download Count'),
      'label' => t('A file has been downloaded'),
      'module' => 'download_count',
      'variables' => [
        'file' => [
          'type' => 'file',
          'label' => t('Downloaded file'),
        ],
        'user' => [
          'type' => 'user',
          'label' => t('Downloading user'),
        ],
        'node' => [
          'type' => 'node',
          'label' => t('Node the file download is associated with'),
        ],
      ],
    ],
  ];
}