diff options
author | alecpl <alec@alec.pl> | 2011-10-07 10:25:23 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-10-07 10:25:23 +0000 |
commit | 370302171330854b9e25556779abcaf965e4e15c (patch) | |
tree | 85206c5aeb39b58b862d5c891afe1683f7d9adf0 | |
parent | fb40f3778412beefd7d5fed510cb3edb32220874 (diff) |
- Plugin API: added 'ready' hook (#1488073)
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | index.php | 6 |
2 files changed, 7 insertions, 0 deletions
@@ -1,6 +1,7 @@ CHANGELOG Roundcube Webmail =========================== +- Plugin API: added 'ready' hook (#1488073) - Ignore DSN request when it isn't supported by SMTP server (#1487800) - Make sure LDAP name fields aren't arrays (#1488108) - Fixed imap test to non-default port when using ssl (#1488118) @@ -214,6 +214,12 @@ else { } } +// we're ready, user is authenticated and the request is safe +$plugin = $RCMAIL->plugins->exec_hook('ready', array('task' => $RCMAIL->task, 'action' => $RCMAIL->action)); +$RCMAIL->set_task($plugin['task']); +$RCMAIL->action = $plugin['action']; + + // handle special actions if ($RCMAIL->action == 'keep-alive') { $OUTPUT->reset(); |