From ceb0c961a255e04a8821288d9eb9a08e67bca429 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 15 Jun 2009 11:44:12 +0000 Subject: [PATCH] pass/get active linetab to select it. --- plekit/php/linetabs.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/plekit/php/linetabs.php b/plekit/php/linetabs.php index f83241a..43d24e5 100644 --- a/plekit/php/linetabs.php +++ b/plekit/php/linetabs.php @@ -45,13 +45,14 @@ drupal_set_html_head(' // (the form gets submitted whatever the confirmation....) // (*) you need to tune the image size, which is wrong, as the image should rather be bottom-aligned -function plekit_linetabs ($array, $id=NULL) { +function plekit_linetabs ($tabs, $id=NULL) { + $active_line_tab=$_GET['active_line_tab']; // need id to pass to the onclick function attached to the input buttons $id="linetabs"; if (! $id) $id .= '-' + $id; print "
"; print "