View Issue Details

IDProjectCategoryView StatusLast Update
0015480phplist applicationPlugin APIpublic22-05-12 12:58
Reporteradrian15 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionFutureDevelopments 
Target Version4.0.xFixed in Version2.11.7 
Summary0015480: Plugins cannot add their own tabs to Send page fix
DescriptionPlugins cannot add their own tabs to Send page.
This patch fixes this problem.
Additional InformationThis patch is based on: svn 1703 revision.
TagsNo tags attached.

Relationships

child of 0015498 new rssmanager Rss manager is totally broken on svn 

Activities

17-05-10 16:19

 

F11_send_tabs_plugins_add_fixed.patch (1,034 bytes)
diff -urN saidi_F10_rss_manager_fix_1/lists/admin/send_core.php saidi_F11_send_tabs_plugins_add_fixed/lists/admin/send_core.php
--- saidi_F10_rss_manager_fix_1/lists/admin/send_core.php	2010-05-16 05:14:34.000000000 +0200
+++ saidi_F11_send_tabs_plugins_add_fixed/lists/admin/send_core.php	2010-05-16 10:41:42.000000000 +0200
@@ -1000,6 +1000,17 @@
 #    $tabs->addTab("Review and Send","$baseurl&tab=Review");
     $tabs->addTab($GLOBALS['I18N']->get("Misc"),"$baseurl&tab=Misc");
 
+  ### allow plugins to add tabs
+  $plugintabs = array();
+  foreach ($GLOBALS['plugins'] as $plugin) {
+    $plugintab = $plugin->sendMessageTab($id,$messagedata);
+    if ($plugintab) {
+      $plugintabname = substr(strip_tags($plugin->sendMessageTabTitle()),0,10);
+      $plugintabs[$plugintabname] = $plugintab;
+      $tabs->addTab($GLOBALS['I18N']->get($plugintabname),"$baseurl&tab=".urlencode($plugintabname));
+    }
+  }
+
     if ($_GET["tab"]) {
       $tabs->setCurrent($GLOBALS['I18N']->get($_GET["tab"]));
     } else {

michiel

22-05-12 12:58

manager   ~0051576

as far as I'm aware this should be ok now, but reopen if you disagree