Functions

Primary tabs

Contains filters are case sensitive
Name Locationsort descending Description
hook_update includes/hook.api.php Handle needed database updates when user updates a module.
hook_clear_cache includes/hook.api.php Allows each module to perform actions when the cache is cleared.
hook_init includes/hook.api.php Allows each module to execute code when the module is first loaded.
hook_exit includes/hook.api.php Allows each module to execute code when the FlightPath page is completely finished.
hook_user_login includes/hook.api.php Perform actions when the user logs in successfully.
hook_perm includes/hook.api.php 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/hook.api.php Allows modules to hook in after a new student object is created.
hook_degree_plan_load includes/hook.api.php Allows modules to hook in after a degree plan object is created & loaded.
hook_group_load includes/hook.api.php Allows modules to act after a group object has been loaded.
hook_course_load includes/hook.api.php Allows modules to act after a course object has been loaded.
hook_apply_draft_changes includes/hook.api.php Allows modules to execute code when the admin user has chose to "apply draft changes".
hook_menu includes/hook.api.php 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/hook.api.php This function allowes the user to theme footnotes before they are draw onto the screen.
hook_translate includes/hook.api.php 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/hook.api.php This hook lets us make alterations to menu items before saving them to the database.
hook_menu_handle_replacement_pattern includes/hook.api.php 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/hook.api.php This hook allows modules to perform extra functions just after an advising session is saved by the system.
fpl_reports_stats_additional_menublocks includes/hook.api.php 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/hook.api.php This hook allows modules to perform extra functions just after an advising session is saved by the system.
hook_form_alter includes/hook.api.php Alter forms which are created using the Form API
menu_convert_replacement_pattern includes/menu.inc Look for modules implementing hook_menu_handle_replacement_pattern, and apply to str.
menu_rebuild_cache includes/menu.inc 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.inc
menu_check_user_access includes/menu.inc 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.inc
menu_get_items_beginning_with includes/menu.inc 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.inc
menu_get_item includes/menu.inc Figure out which menu_router path matches the supplied path and return it.
menu_get_menu_router_item_from_db includes/menu.inc Return array from menu_router for this item. *
arg includes/misc.inc Returns the component of the page's path.
fp_http_request includes/misc.inc Send a request through the Internet and return the result as an object.
timer_start includes/misc.inc Begin a microtime timer for later use.
timer_read includes/misc.inc Works with the timer_start() function to return how long it has been since the start.
fp_get_random_string includes/misc.inc Returns a random string of length len.
fp_clear_cache includes/misc.inc Call all modules which implement hook_clear_cache
fp_no_html_xss includes/misc.inc 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/misc.inc Filter HTML, allowing only certain tags, and removing dangerous attributes.
filter_xss includes/misc.inc 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/misc.inc Like the filter_xss function, this is taken from D7's _filter_xss_split function
filter_xss_attributes includes/misc.inc
filter_xss_bad_protocol includes/misc.inc
fp_strip_dangerous_protocols includes/misc.inc
fp_validate_utf8 includes/misc.inc
fp_get_machine_readable includes/misc.inc Simple function to convert a string into a machine-readable string.
fp_get_degree_classifications includes/misc.inc Return back an assoc array of our set degree classifications, separated by "level"
fp_get_degree_classification_details includes/misc.inc Returns back an assoc array for the supplied code. Looks like: $arr["level_num"] = number $arr["title"] = the title
get_term_structures includes/misc.inc Return an array version of the term_id_structure field from the admin settings
fp_get_requirement_types includes/misc.inc Returns back an array of all the available requirement types (by code) that have been defined.
fp_load_degree includes/misc.inc 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/misc.inc This is our custom error handler, which will intercept PHP warnings, notices, etc, and let us display them, log them, etc.

Pages