From 798de81516100c4037949c7e73c4c5af1915a088 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Mon, 23 Jul 2012 10:06:27 +0000 Subject: Merged revision(s) 16925 from trunk: feature 2703: make it easy for plugins to add tabs in admin screens add a trigger a give an id to each core tabsheets git-svn-id: http://piwigo.org/svn/branches/2.4@16926 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/tabsheet.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'admin/include/tabsheet.class.php') diff --git a/admin/include/tabsheet.class.php b/admin/include/tabsheet.class.php index e046c7f8d..02ee9a3d1 100644 --- a/admin/include/tabsheet.class.php +++ b/admin/include/tabsheet.class.php @@ -24,6 +24,7 @@ class tabsheet { var $sheets; + var $uniqid; var $name; var $titlename; var $selected; @@ -35,10 +36,16 @@ class tabsheet function tabsheet($name = 'TABSHEET', $titlename = 'TABSHEET_TITLE') { $this->sheets = array(); + $this->uniqid = null; $this->name = $name; $this->titlename = $titlename; $this->selected = ""; } + + function set_id($id) + { + $this->uniqid = $id; + } /* add a tab @@ -81,6 +88,7 @@ class tabsheet */ function select($name) { + $this->sheets = trigger_event('tabsheet_before_select', $this->sheets, $this->uniqid); $this->selected = $name; } -- cgit v1.2.3