Add PHP index file
[squirrelmail.git] / plugins / preview_pane / setup.php
index 9a4ed43..4ee0b96 100644 (file)
@@ -29,6 +29,8 @@ function squirrelmail_plugin_init_preview_pane()
       = 'preview_pane_show_options';
    $squirrelmail_plugin_hooks['template_construct_message_list.tpl']['preview_pane']
       = 'preview_pane_message_list';
+   $squirrelmail_plugin_hooks['template_construct_page_header.tpl']['preview_pane']
+      = 'preview_pane_open_close_buttons';
 
 }
 
@@ -110,11 +112,26 @@ function preview_pane_message_list()
   * (and possibly refresh message list as well)
   *
   */
-function preview_pane_change_message_target()
+function preview_pane_change_message_target($args)
 {
 
   include_once(SM_PATH . 'plugins/preview_pane/functions.php');
-  preview_pane_change_message_target_do();
+  preview_pane_change_message_target_do($args);
+
+}
+
+
+
+/**
+  * Adds preview pane open/close (and clear) buttons next to
+  * "provider link"
+  *
+  */
+function preview_pane_open_close_buttons()
+{
+
+  include_once(SM_PATH . 'plugins/preview_pane/functions.php');
+  return preview_pane_open_close_buttons_do();
 
 }