You are here

function views_send_remove_uploaded in Views Send 8

Remove uploaded files.

Parameters

$attachments: An array with file entities (coming from file_save_upload).:

1 call to views_send_remove_uploaded()
views_send_queue_mail in ./views_send.module
Assembles the email and queues it for sending.
1 string reference to 'views_send_remove_uploaded'
views_send_queue_mail in ./views_send.module
Assembles the email and queues it for sending.

File

./views_send.module, line 921
The Views Send module.

Code

function views_send_remove_uploaded($attachments) {
  foreach ($attachments as $attachment) {
    $attachment
      ->delete();
  }
}