r82523 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82522‎ | r82523 | r82524 >
Date:18:09, 20 February 2011
Author:yaron
Status:deferred
Tags:
Comment:
Added description field to the display of form-field parameters
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_CreateForm.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_CreateForm.php
@@ -353,7 +353,7 @@
354354 foreach ( $params as $i => $param ) {
355355 $param_name = $param['name'];
356356 $type = $param['type'];
357 - //$desc = $param['description'];
 357+ $desc = $param['description'];
358358
359359 $cur_value = ( array_key_exists( $param_name, $paramValues ) ) ? $paramValues[$param_name] : '';
360360
@@ -366,8 +366,7 @@
367367 $text .= "<div style=\"width: 30%; padding: 5px; float: left;\">$param_name:\n";
368368
369369 $text .= self::inputTypeParamInput( $type, $param_name, $cur_value, $param, array(), $fieldFormText );
370 - //$text .= "\n <br /><em>$desc</em>\n</div>\n";
371 - $text .= "\n</div>\n";
 370+ $text .= "\n <br /><em>$desc</em>\n</div>\n";
372371
373372 if ( $i % 3 == 2 || $i == count( $params ) - 1 ) {
374373 $text .= "<div style=\"clear: both\";></div></div>\n";