function student_search_render_small_search

7.x student_search.module 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.

3 calls to student_search_render_small_search()
fp_template.php in themes/basic/fp_template.php
fp_template.php in themes/classic/fp_template.php
fp_template.php in themes/fp5_clean/fp_template.php

File

modules/student_search/student_search.module, line 194

Code

function student_search_render_small_search() {
  global $current_student_id;

  $rtn = "";

  $url = fp_url("student-search/search");

  $rtn .= "<form action='" . $url . "' 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;

}