Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-21609 - add form label to search forums function.

  • Loading branch information...
commit 0e5bfd669f94d76b6ca9571af20805b8b667d5c9 1 parent 0fb14e5
Rossiani Wijaya authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 mod/forum/lib.php
6 mod/forum/lib.php
View
@@ -3637,8 +3637,10 @@ function forum_search_form($course, $search='') {
$output .= '<form action="'.$CFG->wwwroot.'/mod/forum/search.php" style="display:inline">';
$output .= '<fieldset class="invisiblefieldset">';
$output .= $OUTPUT->old_help_icon('search', get_string('search'));
- $output .= '<input name="search" type="text" size="18" value="'.s($search, true).'" alt="search" />';
- $output .= '<input value="'.get_string('searchforums', 'forum').'" type="submit" />';
+ $output .= '<label class="accesshide" for="search" >'.get_string('search', 'forum').'</label>';
+ $output .= '<input id="search" name="search" type="text" size="18" value="'.s($search, true).'" alt="search" />';
+ $output .= '<label class="accesshide" for="searchforums" >'.get_string('searchforums', 'forum').'</label>';
+ $output .= '<input id="searchforums" value="'.get_string('searchforums', 'forum').'" type="submit" />';
$output .= '<input name="id" type="hidden" value="'.$course->id.'" />';
$output .= '</fieldset>';
$output .= '</form>';
Please sign in to comment.
Something went wrong with that request. Please try again.