summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-10-07 10:25:23 +0000
committeralecpl <alec@alec.pl>2011-10-07 10:25:23 +0000
commit370302171330854b9e25556779abcaf965e4e15c (patch)
tree85206c5aeb39b58b862d5c891afe1683f7d9adf0 /index.php
parentfb40f3778412beefd7d5fed510cb3edb32220874 (diff)
- Plugin API: added 'ready' hook (#1488073)
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/index.php b/index.php
index 6eee0bec5..a1eb54587 100644
--- a/index.php
+++ b/index.php
@@ -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();