Index: trunk/phase3/includes/Xml.php |
— | — | @@ -347,7 +347,10 @@ |
348 | 348 | * Convenience function to build an HTML form label |
349 | 349 | * @param $label String text of the label |
350 | 350 | * @param $id |
351 | | - * @param $attribs Array, other attributes |
| 351 | + * @param $attribs Array an attribute array. This will usuall be |
| 352 | + * the same array as is passed to the corresponding input element, |
| 353 | + * so this function will cherry-pick appropriate attributes to |
| 354 | + * apply to the label as well; currently only class is applied. |
352 | 355 | * @return string HTML |
353 | 356 | */ |
354 | 357 | public static function label( $label, $id, $attribs=array() ) { |