aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
Diffstat (limited to 'admin/include')
-rw-r--r--admin/include/albums_tab.inc.php1
-rw-r--r--admin/include/functions_history.inc.php1
-rw-r--r--admin/include/tabsheet.class.php8
3 files changed, 10 insertions, 0 deletions
diff --git a/admin/include/albums_tab.inc.php b/admin/include/albums_tab.inc.php
index 3db2d98a3..22457efd3 100644
--- a/admin/include/albums_tab.inc.php
+++ b/admin/include/albums_tab.inc.php
@@ -26,6 +26,7 @@ include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
$my_base_url = get_root_url().'admin.php?page=';
$tabsheet = new tabsheet();
+$tabsheet->set_id('cat_list');
$tabsheet->add('list', l10n('List'), $my_base_url.'cat_list');
$tabsheet->add('move', l10n('Move'), $my_base_url.'cat_move');
$tabsheet->add('permalinks', l10n('Permalinks'), $my_base_url.'permalinks');
diff --git a/admin/include/functions_history.inc.php b/admin/include/functions_history.inc.php
index 911546125..301ae6b7d 100644
--- a/admin/include/functions_history.inc.php
+++ b/admin/include/functions_history.inc.php
@@ -29,6 +29,7 @@ function history_tabsheet()
// TabSheet
$tabsheet = new tabsheet();
+ $tabsheet->set_id('history');
// TabSheet initialization
$tabsheet->add('stats', l10n('Statistics'), $link_start.'stats');
$tabsheet->add('history', l10n('Search'), $link_start.'history');
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;
}