Functions

Primary tabs

Contains filters are case sensitive
Name Locationsort descending Description
user_has_role includes/misc.inc Does the user have the specified role?
user_has_permission includes/misc.inc Returns TRUE or FALSE if the logged in user has access based on the permission supplied.
get_term_id_suffixes includes/misc.inc This looks at the global termIDStructure setting and returns back an array of only term suffixes (like 40, 60, mm, etc).
get_modules_permissions includes/misc.inc This function will read through all the modules' permissions and return back an array. Specifically, it retrieves arrays from each modules' hook_perm() function.
get_modules_menus includes/misc.inc Similar to get_modules_permissions, this will scan through all installed modules' hook_menu() functions, and assemble an array which is sorted by "location" and then by "weight".
fp_number_pad includes/misc.inc Simple function to left padd numbers with 0's. 1 becomes 001 20 becomes 020 and so on.
fp_debug_ct includes/misc.inc Shortcut to fp_debug_current_time_millis()
fp_debug_current_time_millis includes/misc.inc When called repeatedly, this function will display a message along with a milisecond count out to the side. Very useful for developers to time function calls or queries, to see how long they are taking.
fp_truncate_decimals includes/misc.inc This simple function will take a number and truncate the number of decimals to the requested places. This can be used in place of number_format(), which *rounds* numbers.
fp_get_module_details includes/misc.inc Simply returns the module's row from the modules table, if it exists.
get_term_structures includes/misc.inc Return an array version of the term_id_structure field from the admin settings
fp_reduce_whitespace includes/misc.inc Simple helper function to reduce whitespace (like double-spaces)
fp_get_js_alert_link includes/misc.inc Creates a javascript "alert" link, which tells the user some message with javascript alert().
fp_add_body_class includes/misc.inc Add a CSS class to the body tag of the page. Useful for themeing later on.
fp_get_machine_readable includes/misc.inc Simple function to convert a string into a machine-readable string.
convert_html_to_bbcode includes/theme.inc
convert_bbcode_to_html includes/theme.inc
format_date includes/theme.inc Format a timestamp using the date command. TODO: Make the formats something which can be controlled through the settings.
fp_render_menu_block includes/theme.inc Render a "menu" block of menu items which are all rooted at the menu_root. So if the menu root is tools, it might return items whose paths look like: tools/fun tools/here/there So long as the menu type is "MENU_TYPE_NORMAL_ITEM". …
fp_display_page includes/theme.inc Output the contents of the $page variable to the screen. $page is an array containing details about the page, as well as its original menu item (router_item) definition.
fp_show_title includes/theme.inc Sets whether the title should be shown on the page or not.
fp_render_c_fieldset includes/theme.inc This function will return the HTML to contruct a collapsible fieldset, complete with javascript and style tags.
fp_build_sub_tab_array includes/theme.inc Create a "sub-tab" array, which looks like a standard tab_array, but it contains only this page's sub-tab siblings.
fp_build_tab_array includes/theme.inc Looks at the current page array and returns a valid $tab_array Meant for the top of the screen.
fp_render_currently_advising_box includes/theme.inc Draws the CurrentlyAdvisingBox which appears at the top of the screen, containing the student's information like name, major, etc.
fp_render_greeting includes/theme.inc This displays a friendly message to the user, and provides a logout link at the top.
fp_render_sub_tab_array includes/theme.inc Similar to render_tab_array.
fp_render_button includes/theme.inc Returns the HTML to draw a pretty button.
fp_render_mobile_tab_array includes/theme.inc
fp_render_tab_array includes/theme.inc Given a propperly formatted tab_array, this will return the HTML to draw it on a page.
display_not_found includes/theme.inc
display_access_denied includes/theme.inc
fp_theme_location includes/theme.inc Return the theme location
fp_render_curved_line includes/theme.inc Will draw a string in a pretty curved box. Used for displaying semester titles.
fp_render_square_line includes/theme.inc Will draw a string in a pretty square box. Used for displaying semester titles.
fp_render_menu_item includes/theme.inc
pretty_print includes/theme.inc
install_get_settings_file_template ./install.php Returns a template for a new settings file.
install_perform_install ./install.php Actually performs the installation of FlightPath
install_display_requirements ./install.php Displays the requirements on screen for the user.
install_check_requirements ./install.php Check for missing requirements of the system.
install_display_db_form ./install.php Displays the form to let a user set up a new database
install_display_lang_selection ./install.php
admin_edit_course_form modules/admin/admin.courses.inc This form lets the user edit details about a course.
admin_display_courses modules/admin/admin.courses.inc This function displays all of our courses for us to edit.
admin_edit_course_form_submit modules/admin/admin.courses.inc
admin_add_degree_form modules/admin/admin.degrees.inc This form lets the user add a degree to the database.
admin_display_degrees_popup_add_group modules/admin/admin.degrees.inc
admin_copy_degree_form_submit modules/admin/admin.degrees.inc
admin_copy_degree_form modules/admin/admin.degrees.inc This form lets the user copy a degree and all of it's tracks & concentrations.

Pages