summaryrefslogtreecommitdiff
path: root/roundcubemail/index.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-10-07 10:25:23 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-10-07 10:25:23 +0000
commitaf978520684517ce476964eb57a8398072dab4d8 (patch)
tree37503b762e5f1d992bdd4dd2c3e95e6eea56454a /roundcubemail/index.php
parent63cd762cda61fd1efb95e0fce88d3df116b22a17 (diff)
- Plugin API: added 'ready' hook (#1488073)
git-svn-id: https://svn.roundcube.net/trunk@5320 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/index.php')
-rw-r--r--roundcubemail/index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php
index 6eee0bec5..a1eb54587 100644
--- a/roundcubemail/index.php
+++ b/roundcubemail/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();