Index: trunk/extensions/PageSchemas/PageSchemas.classes.php |
— | — | @@ -72,10 +72,8 @@ |
73 | 73 | $text .= "</table>\n"; |
74 | 74 | }else{ |
75 | 75 | $text = ""; |
76 | | - } |
77 | | - wfDebugLog( 'myextension', 'Generate html is:: ' . $text ); |
78 | | - return $text; |
79 | | - |
| 76 | + } |
| 77 | + return $text; |
80 | 78 | } |
81 | 79 | static function parseTemplate ( $template_xml ) { |
82 | 80 | $name = $template_xml->attributes()->name; |
— | — | @@ -87,7 +85,12 @@ |
88 | 86 | } |
89 | 87 | static function parseField ( $field_xml ) { |
90 | 88 | $name = $field_xml->attributes()->name; |
91 | | - $text = self::tableMessageRowHTML('paramAttr', $name, $field_xml); |
| 89 | + $text = self::tableRowHTML('paramAttr', 'Field', $name); |
| 90 | + $text_object = array(); //different extensions will fill the html parsed text in this array via hooks |
| 91 | + wfRunHooks( 'PSParseFieldElements', array( $field_xml, &$text_object ) ); |
| 92 | + foreach( $text_object as $key => $value ) { |
| 93 | + $text .= $value; |
| 94 | + } |
92 | 95 | return $text; |
93 | 96 | } |
94 | 97 | } |