The errors are obvious:
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('Filename of the downloaded file.'),
),
'ip' => array(
'type' => 'file',
'label' => t('Node id from which the file was downloaded.'),
),
'referrer' => array(
'type' => 'file',
'label' => t('HTTP Referrer of the downloaded file.'),
),
'time' => array(
'type' => 'file',
'label' => t('Timestamp of the download.'),
),
),
),
);
}
Patch to follow.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | download_count-event_labels-1294316-1.patch | 861 bytes | mrtoner |
Comments
Comment #1
mrtoner commentedComment #2
WorldFallz commentedobvious indeed-- nothing like a copy&paste fumfer, lol. Thanks for the patch!
http://drupalcode.org/project/download_count.git/commit/5f44cfc