function download_count_rules_event_info in Download Count 6.2
Same name and namespace in other branches
- 8 download_count.rules.inc \download_count_rules_event_info()
- 7.3 download_count.rules.inc \download_count_rules_event_info()
Implementation of hook_rules_event_info().
File
- ./
download_count.module, line 579 - Tracks file downloads for files stored in the drupal files table using the private files setting or custom private filefield.
Code
function download_count_rules_event_info() {
return array(
'download_count_file_download' => array(
'label' => t('A file has been downloaded'),
'module' => 'Download Count',
'arguments' => array(
'filename' => array(
'type' => 'file',
'label' => t('Filename of the downloaded file.'),
),
'user' => array(
'type' => 'file',
'label' => t('User object of the user downloading the file.'),
),
'nid' => array(
'type' => 'file',
'label' => t('Node from which the file was downloaded.'),
),
'ip' => array(
'type' => 'file',
'label' => t('IP address to which the file was downloaded.'),
),
'referrer' => array(
'type' => 'file',
'label' => t('HTTP Referrer of the download link.'),
),
'time' => array(
'type' => 'file',
'label' => t('Timestamp of the download.'),
),
),
),
);
}