[wellwell-devel] [SCM] Interchange wellwell catalog branch, master, updated. 4585119dcd351dfb7c0b5b285b9f79091d5a5dde

Stefan Hornburg racke at rt.icdevgroup.org
Mon Jun 8 09:21:43 UTC 2009


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Interchange wellwell catalog".

The branch, master has been updated
       via  4585119dcd351dfb7c0b5b285b9f79091d5a5dde (commit)
      from  9974b7e74bb7b9172b6d9fcf95d8f006ab3684a0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4585119dcd351dfb7c0b5b285b9f79091d5a5dde
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Mon Jun 8 11:20:52 2009 +0200

    implement and document special case widget "legend" for forms

-----------------------------------------------------------------------

Summary of changes and diff:
 README                      |    6 ++++++
 code/theme_form_element.sub |    4 ++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/README b/README
index 2062bc6..20f25a9 100644
--- a/README
+++ b/README
@@ -230,6 +230,12 @@ component	Part name
 priority    Sort order in form (descending)
 widget      Widget
 
+The widget is passed by the form_element_field theme function to the
+[display] tag. 
+
+One exception to that is the "legend" widget, which just displays the
+label of the form_element.
+
 Attributes
 ----------
 
diff --git a/code/theme_form_element.sub b/code/theme_form_element.sub
index 21745d3..473973c 100644
--- a/code/theme_form_element.sub
+++ b/code/theme_form_element.sub
@@ -12,6 +12,10 @@ sub {
 	my ($name, $label, $type, $value, $attributes) = @_;
 	my ($out);
 	
+	if ($type eq 'legend') {
+		return qq{<legend>$label</legend>};
+	}
+
 	$out = theme('form_element_label', $name, $label);
 	$out .= theme('form_element_field', $name,
 				   	$type,


hooks/post-receive
-- 
Interchange wellwell catalog



More information about the wellwell-devel mailing list