Changeset 23773


Ignore:
Timestamp:
Jul 4, 2013, 9:37:25 PM (11 years ago)
Author:
mistic100
Message:

add batchdownload_end_zip trigger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/include/BatchDownloader.class.php

    r23772 r23773  
    458458      $this->updateParam('date_creation', date('Y-m-d H:i:s'));
    459459     
    460       trigger_action('batchdownload_init_zip', $this->data, array_keys($this->images));
     460      trigger_action('batchdownload_init_zip', $this->data, array_keys($this->images)); // triggered once for all
    461461    }
    462462   
     
    562562      pwg_query($query);
    563563     
     564      trigger_action('batchdownload_end_zip', $this->data, $images_added); // triggered for each zip
     565     
    564566      // all images added ?
    565567      if (count($images_to_add) == count($images_added))
Note: See TracChangeset for help on using the changeset viewer.