Functions
Search API
Primary tabs
Name | Location | Description |
---|---|---|
system_popup_report_contact_form_submit |
modules/ |
|
system_login_form |
modules/ |
This draws the form which facilitates logins. |
system_login_form_validate |
modules/ |
Validate function for the login form. This is where we will do all of the lookups to verify username and password. If you want to write your own login handler (like for LDAP) this is the function you would duplicate in a custom module, then use… |
system_login_form_submit |
modules/ |
Submit handler for login form. If we are here, it probably means we have indeed authenticated. Just in case, we will test the form_state["passed_authentication"] value, which we expect to have been set in our validate handler. |
system_display_dashboard_page |
modules/ |
This is the "dashboard" page for FlightPath, which replaces the "main" page from FP 5. |
system_render_advising_snapshop_for_iframe |
modules/ |
This is meant to be a widget which shows in the dashboard of the advising user, within an iframe, since it can take a while to load. |
system_init |
modules/ |
Called on every page load. |
system_modules_form |
modules/ |
This is the form which an admin may use to manage the modules in the system. |
system_modules_form_submit |
modules/ |
Submit handler for the modules form. |
system_handle_uninstall_module |
modules/ |
Called from the menu (ie, a URL) this function will uninstall a module. |
system_install |
modules/ |
Implementation of hook_install. |
system_update |
modules/ |
|
system_enable |
modules/ |
Implementation of hook_enable. |
student_search_get_advanced_search_tips |
modules/ |
Simply returns the HTML to display the "advanced search tips" collapsible fieldset and instructions. |
z__student_search_render_advisees |
modules/ |
|
student_search_get_advisee_table_headers |
modules/ |
|
student_search_render_advisees |
modules/ |
|
z______student_search_render_advisees |
modules/ |
|
student_search_query_advisees |
modules/ |
The limit is how many we will query, and also how many will appear on the page at one time. |
student_search_render_small_search |
modules/ |
This is meant to be called directly from the theme template, to draw the small search box in the corner of the screen. |
student_search_display_my_advisees |
modules/ |
Displays this user's advisees, if there are any assigned. |
search_user_can_search_for_some_advisees |
modules/ |
Basically, can the user see the "Advisees" tab at all? The answer is TRUE if they have any of the permissions that let them do so. |
student_search_perm |
modules/ |
Implementation of hook_perm |
student_search_get_school_ids_user_is_allowed_to_search |
modules/ |
|
student_search_get_majors_for_fapi |
modules/ |
Returns an array of majors from the database, suitable for use with our Form API. |
student_search_ajax_autocomplete_student |
modules/ |
Meant to return results of the ajax autocomplete field, for selecting a student by name or cwid. Code inspiration from: https://www.drupal.org/node/854216 |
student_search_subtab_switchboard |
modules/ |
The primary purpose of this function is to decide which "sub tab" function to send the user off to. This is based on whatever their previous selection was. |
student_search_settings_form |
modules/ |
This is a system_settings form for configuring our module. |
student_search_student_select_switchboard |
modules/ |
The user has selected a student (clicked on a row) from the Search or My Advisees screen. |
student_search_menu |
modules/ |
|
student_search_display_majors_search |
modules/ |
Display the majors search sub-tab, where we can select a major and see the students assigned to it. |
student_search_display_my_majors |
modules/ |
Displays students belonging to the current user's major code. |
student_search_search_form |
modules/ |
|
student_search_search_form_submit |
modules/ |
|
student_profile_menu |
modules/ |
Implements hook_menu |
student_profile_get_grade_percentages_for_student |
modules/ |
Returns an array where we show the percentage of grades that the student has, compared to the whole. For example: 50% A's, 10% B's, and so on. |
student_profile_display_student_profile_page |
modules/ |
|
student_priority_get_calculations_for_student |
modules/ |
Run all of the calculations for a student, and return back the results in a formatted array. |
student_priority_get_academic_priority_value |
modules/ |
Queries for the academic priority value, and if its older than the set number of seconds, we will re-calculate for this student. Set to zero to force it to recalculate every time. |
student_priority_get_student_academic_priority_label |
modules/ |
Returns 'normal', 'medium', or 'high' based on values. |
student_priority_display_priority_calculations_page |
modules/ |
Displays the calculations used to get the priority values. Can be displayed in either the dialog or stand-alone. |
student_priority_menu |
modules/ |
|
hook_define_calculation_tests |
modules/ |
Lets us modify an array of calculation tests, either adding to it, or altering the existing ones. Notice that $arr is passed by reference. |
example_define_calculation_tests |
modules/ |
Implements hook_define_calculation_tests, "METHOD ONE" from above. Accept an array so we can alter. Then, we are just going to add to array (or modify). |
example__is_student_gpa_above_250 |
modules/ |
|
student_files_user_may_download_student_file |
modules/ |
Returns TRUE or FALSE if the user has access to download this particular student's file. |
student_files_upload_any_student_files_form_submit |
modules/ |
We can assume at this point that eveything is peachy, so let's get to uploading! |
student_files_upload_any_student_files_form_validate |
modules/ |
Validate function. |
student_files_upload_any_student_files_form |
modules/ |
This is where we can upload (en masse?) to any arbitrary student. |
student_files_menu |
modules/ |
Implementation of hook_menu |