From dd106c8824e96a1f8006f57059e8157c9d03ee46 Mon Sep 17 00:00:00 2001 From: John Okely Date: Tue, 4 Aug 2015 11:43:18 +0800 Subject: [PATCH] MDL-37864 lib: Change help for headers to match existing table api --- lib/tablelib.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/tablelib.php b/lib/tablelib.php index b1ae5561766..c348e1fda40 100644 --- a/lib/tablelib.php +++ b/lib/tablelib.php @@ -434,13 +434,10 @@ class flexible_table { * * Always use this function if you need to create header with sorting and help icon. * - * @param int $index of header. - * @param string $identifier the keyword that defines a help page. - * @param string $component component name. - * @param string|bool $linktext true means use $title as link text, string means link text value. + * @param renderable[] $helpicons An array of renderable objects to be used as help icons */ - public function define_help_for_header($index, $identifier, $component = 'moodle', $linktext = '') { - $this->helpforheaders[$index] = new help_icon($identifier, $component, $linktext); + public function define_help_for_headers($helpicons) { + $this->helpforheaders = $helpicons; } /**