You are here

function download_count_rules_event_info in Download Count 7.3

Same name and namespace in other branches
  1. 8 download_count.rules.inc \download_count_rules_event_info()
  2. 6.2 download_count.module \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 array(
    'download_count_file_download' => array(
      'group' => t('Download Count'),
      'label' => t('A file has been downloaded'),
      'module' => 'download_count',
      'variables' => array(
        'file' => array(
          'type' => 'file',
          'label' => t('Downloaded file'),
        ),
        'user' => array(
          'type' => 'user',
          'label' => t('Downloading user'),
        ),
        'node' => array(
          'type' => 'node',
          'label' => t('Node the file download is associated with'),
        ),
      ),
    ),
  );
}