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.

Comments

mrtoner’s picture

Status: Active » Needs review
StatusFileSize
new861 bytes
WorldFallz’s picture

Status: Needs review » Fixed

obvious indeed-- nothing like a copy&paste fumfer, lol. Thanks for the patch!

http://drupalcode.org/project/download_count.git/commit/5f44cfc

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.