function student_search_render_small_search

6.x student_search.module student_search_render_small_search()
4.x student_search.module student_search_render_small_search()
5.x student_search.module student_search_render_small_search()

This is meant to be called directly from the theme template, to draw the small search box in the corner of the screen.

As such, we need to include any javascript we need here, rather than using fp_add_js.

1 call to student_search_render_small_search()
fp_template.php in themes/classic/fp_template.php

File

modules/student_search/student_search.module, line 193

Code

function student_search_render_small_search() {
  global $current_student_id;

  $rtn = "";
  $rtn .= "<form action='" . base_path() . "/student-search/search' method='post' id='small-search-form'
              style='padding:0; margin:0; padding-bottom: 5px;'>
                     <input type='text' class='smallinput' size='30' name='search_for' id='search_bar_value'                       
                        placeholder = '" . t("Search by name or CWID") . "'>
                     <input type='submit' name='submit' value='=>' class='smallinput'>
                     <input type='hidden' name='current_student_id' value='$current_student_id'>   
                     <input type='hidden' name='did_search' value='true'>                  
                    </form>
                    ";

  return $rtn;

}