Functions
Search API
Primary tabs
| Name |
Location |
Description |
|---|---|---|
| hook_update |
includes/ |
Handle needed database updates when user updates a module. |
| hook_clear_cache |
includes/ |
Allows each module to perform actions when the cache is cleared. |
| hook_init |
includes/ |
Allows each module to execute code when the module is first loaded. |
| hook_exit |
includes/ |
Allows each module to execute code when the FlightPath page is completely finished. |
| hook_user_login |
includes/ |
Perform actions when the user logs in successfully. |
| hook_perm |
includes/ |
This hook defines available permissions for a module. These perms are used with hook_menu() and the function user_has_permission() |
| hook_student_load |
includes/ |
Allows modules to hook in after a new student object is created. |
| hook_degree_plan_load |
includes/ |
Allows modules to hook in after a degree plan object is created & loaded. |
| hook_group_load |
includes/ |
Allows modules to act after a group object has been loaded. |
| hook_course_load |
includes/ |
Allows modules to act after a course object has been loaded. |
| hook_apply_draft_changes |
includes/ |
Allows modules to execute code when the admin user has chose to "apply draft changes". |
| hook_menu |
includes/ |
Allows modules to specify valid URLs in FlightPath, and define what function to call when the user visits that URL. |
| hook_theme_advise_footnote |
includes/ |
This function allowes the user to theme footnotes before they are draw onto the screen. |
| hook_translate |
includes/ |
This function is called by the t() function, and gives modules a chance to intercept a string and change it. Meant primarily for translating to another language, but also good for simple replacements. Used by the Locale module. |
| hook_menu_alter |
includes/ |
This hook lets us make alterations to menu items before saving them to the database. |
| hook_menu_handle_replacement_pattern |
includes/ |
This hook is called by the menu system. It allows each module the change to replace string patterns in its menu items (defined in hook_menu). |
| hook_save_advising_session |
includes/ |
This hook allows modules to perform extra functions just after an advising session is saved by the system. |
| fpl_reports_stats_additional_menublocks |
includes/ |
Used by the stats module, this will ask other modules to return an array of paths suitable for the fp_render_menu_block() function. In other words, the paths should be the **beginning** of the paths of your custom reports or other links which you… |
| hook_save_advising_session_from_post |
includes/ |
This hook allows modules to perform extra functions just after an advising session is saved by the system. |
| hook_form_alter |
includes/ |
Alter forms which are created using the Form API |
| menu_convert_replacement_pattern |
includes/ |
Look for modules implementing hook_menu_handle_replacement_pattern, and apply to str. |
| menu_rebuild_cache |
includes/ |
Go through all installed modules and rebuild the menu_router table, based on each module's hook_menu function. |
| menu_get_module_path |
includes/ |
|
| menu_check_user_access |
includes/ |
Looks at the router item's details (from menu_get_item) and returns TRUE or FALSE if the user can access this item. |
| menu_execute_page_request |
includes/ |
|
| menu_get_items_beginning_with |
includes/ |
Return menu_items whose path begins with the menu_root. Ex: "tools" would return tools/fun and tools/here/there |
| menu_get_items_in_tab_family |
includes/ |
|
| menu_get_item |
includes/ |
Figure out which menu_router path matches the supplied path and return it. |
| menu_get_menu_router_item_from_db |
includes/ |
Return array from menu_router for this item. * |
| arg |
includes/ |
Returns the component of the page's path. |
| fp_http_request |
includes/ |
Send a request through the Internet and return the result as an object. |
| timer_start |
includes/ |
Begin a microtime timer for later use. |
| timer_read |
includes/ |
Works with the timer_start() function to return how long it has been since the start. |
| fp_get_random_string |
includes/ |
Returns a random string of length len. |
| fp_clear_cache |
includes/ |
Call all modules which implement hook_clear_cache |
| fp_no_html_xss |
includes/ |
Remove any possiblilty of a malicious attacker trying to inject nonsense. From: https://paragonie.com/blog/2015/06/preventing-xss-vulnerabilities-in-php... |
| filter_markup |
includes/ |
Filter HTML, allowing only certain tags, and removing dangerous attributes. |
| filter_xss |
includes/ |
This function is taken almost directly from Drupal 7's core code. It is used to help us filter out dangerous HTML which the user might type. From the D7 documentation: |
| filter_xss_split |
includes/ |
Like the filter_xss function, this is taken from D7's _filter_xss_split function |
| filter_xss_attributes |
includes/ |
|
| filter_xss_bad_protocol |
includes/ |
|
| fp_strip_dangerous_protocols |
includes/ |
|
| fp_validate_utf8 |
includes/ |
|
| fp_get_machine_readable |
includes/ |
Simple function to convert a string into a machine-readable string. |
| fp_get_degree_classifications |
includes/ |
Return back an assoc array of our set degree classifications, separated by "level" |
| fp_get_degree_classification_details |
includes/ |
Returns back an assoc array for the supplied code. Looks like: $arr["level_num"] = number $arr["title"] = the title |
| get_term_structures |
includes/ |
Return an array version of the term_id_structure field from the admin settings |
| fp_get_requirement_types |
includes/ |
Returns back an array of all the available requirement types (by code) that have been defined. |
| fp_load_degree |
includes/ |
This function provides a pass-thru to $d = new DegreePlan(args). However, it allows for quick caching look-up, so it should be used when possible instead of $x = new DegreePlan. |
| _fp_error_handler |
includes/ |
This is our custom error handler, which will intercept PHP warnings, notices, etc, and let us display them, log them, etc. |
