From bb4bab500b445d1c5b5bb261936b11a97dd97f1c Mon Sep 17 00:00:00 2001 From: fmarier Date: Thu, 31 Jan 2008 22:21:52 +0000 Subject: [PATCH] MDL-13244 - weblib - Add 'summary' attribute to print_table() --- lib/weblib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/weblib.php b/lib/weblib.php index bf0a2a4d0f4..b1bfa11e7fb 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4625,6 +4625,7 @@ function print_png($url, $sizex, $sizey, $return, $parameters='alt=""') { *
  • $table->class - class attribute to put on the table *
  • $table->id - id attribute to put on the table. *
  • $table->rowclass[] - classes to add to particular rows. + *
  • $table->summary - Description of the contents for screen readers. * * @param bool $return whether to return an output string or echo now * @return boolean or $string @@ -4684,6 +4685,9 @@ function print_table($table, $return=false) { $tableid = empty($table->id) ? '' : 'id="'.$table->id.'"'; $output .= 'summary)) { + $output .= " summary=\"$table->summary\""; + } $output .= " cellpadding=\"$table->cellpadding\" cellspacing=\"$table->cellspacing\" class=\"$table->class boxalign$table->tablealign\" $tableid>\n"; $countcols = 0;