Index: trunk/phase3/includes/HTMLForm.php |
— | — | @@ -676,7 +676,7 @@ |
677 | 677 | * TODO: Document |
678 | 678 | * @param $fields |
679 | 679 | */ |
680 | | - function displaySection( $fields, $sectionName = '' ) { |
| 680 | + function displaySection( $fields, $sectionName = '', $displayTitle = false ) { |
681 | 681 | $tableHtml = ''; |
682 | 682 | $subsectionHtml = ''; |
683 | 683 | $hasLeftColumn = false; |
— | — | @@ -699,7 +699,11 @@ |
700 | 700 | if ( isset( $this->mSectionFooters[$key] ) ) { |
701 | 701 | $section .= $this->mSectionFooters[$key]; |
702 | 702 | } |
703 | | - $subsectionHtml .= Xml::fieldset( $legend, $section ) . "\n"; |
| 703 | + $attributes = array(); |
| 704 | + if ( $displayTitle ) { |
| 705 | + $attributes["title"] = $key; |
| 706 | + } |
| 707 | + $subsectionHtml .= Xml::fieldset( $legend, $section, $attributes ) . "\n"; |
704 | 708 | } |
705 | 709 | } |
706 | 710 | |
Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -1520,4 +1520,10 @@ |
1521 | 1521 | |
1522 | 1522 | return $data; |
1523 | 1523 | } |
| 1524 | + /** |
| 1525 | + * Get the whole body of the form. |
| 1526 | + */ |
| 1527 | + function getBody() { |
| 1528 | + return $this->displaySection( $this->mFieldTree, '', true ); |
| 1529 | + } |
1524 | 1530 | } |