Index: trunk/extensions/Validator/includes/ParserHook.php |
— | — | @@ -210,10 +210,27 @@ |
211 | 211 | |
212 | 212 | $this->parser = array_shift( $args ); |
213 | 213 | |
214 | | - return array( $this->validateAndRender( $args, self::TYPE_FUNCTION ), 'noparse' => true, 'isHTML' => true ); |
| 214 | + return array_merge( |
| 215 | + array( $this->validateAndRender( $args, self::TYPE_FUNCTION ) ), |
| 216 | + $this->getFunctionOptions() |
| 217 | + ); |
215 | 218 | } |
216 | 219 | |
217 | 220 | /** |
| 221 | + * Returns the parser function otpions. |
| 222 | + * |
| 223 | + * @since 0.4 |
| 224 | + * |
| 225 | + * @return array |
| 226 | + */ |
| 227 | + protected function getFunctionOptions() { |
| 228 | + return array( |
| 229 | + 'noparse' => true, |
| 230 | + 'isHTML' => true |
| 231 | + ); |
| 232 | + } |
| 233 | + |
| 234 | + /** |
218 | 235 | * Takes care of validation and rendering, and returns the output. |
219 | 236 | * |
220 | 237 | * @since 0.4 |