Bladeren bron

We give plugins the ability to add buttons to the mailbox display form, but no way to act upon them. This provides a simple hook to do so.

Jimmy Conner 22 jaren geleden
bovenliggende
commit
bfaf2ecc6b
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 3 0
      src/move_messages.php

+ 3 - 0
src/move_messages.php

@@ -161,6 +161,9 @@ if ($targetMailbox != $lastTargetMailbox) {
     sqsession_register($lastTargetMailbox, 'lastTargetMailbox');
     sqsession_register($lastTargetMailbox, 'lastTargetMailbox');
 }
 }
 $exception = false;
 $exception = false;
+
+do_hook('move_before_move');
+
 // expunge-on-demand if user isn't using move_to_trash or auto_expunge
 // expunge-on-demand if user isn't using move_to_trash or auto_expunge
 if(isset($expungeButton)) {
 if(isset($expungeButton)) {
     $cnt = sqimap_mailbox_expunge($imapConnection, $mailbox, true);
     $cnt = sqimap_mailbox_expunge($imapConnection, $mailbox, true);