From: fmarier Date: Thu, 31 Jan 2008 22:24:45 +0000 (+0000) Subject: Merged from MOODLE_19_STABLE: MDL-13244 - weblib - Add 'summary' attribute to print_t... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0cda10df3e942935a05bb9fb75a3c7010ab7f97f;p=moodle.git Merged from MOODLE_19_STABLE: MDL-13244 - weblib - Add 'summary' attribute to print_table() --- diff --git a/lib/weblib.php b/lib/weblib.php index bd43ab4efa..50a353f832 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4650,6 +4650,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 @@ -4709,6 +4710,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;