Functions
Search API
Primary tabs
Name | Location | Description |
---|---|---|
user_has_role |
includes/ |
Does the user have the specified role? |
user_has_permission |
includes/ |
Returns TRUE or FALSE if the logged in user has access based on the permission supplied. |
get_term_id_suffixes |
includes/ |
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/ |
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/ |
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/ |
Simple function to left padd numbers with 0's. 1 becomes 001 20 becomes 020 and so on. |
fp_debug_ct |
includes/ |
Shortcut to fp_debug_current_time_millis() |
fp_debug_current_time_millis |
includes/ |
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/ |
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/ |
Simply returns the module's row from the modules table, if it exists. |
get_term_structures |
includes/ |
Return an array version of the term_id_structure field from the admin settings |
fp_reduce_whitespace |
includes/ |
Simple helper function to reduce whitespace (like double-spaces) |
fp_get_js_alert_link |
includes/ |
Creates a javascript "alert" link, which tells the user some message with javascript alert(). |
fp_add_body_class |
includes/ |
Add a CSS class to the body tag of the page. Useful for themeing later on. |
fp_get_machine_readable |
includes/ |
Simple function to convert a string into a machine-readable string. |
convert_html_to_bbcode |
includes/ |
|
convert_bbcode_to_html |
includes/ |
|
format_date |
includes/ |
Format a timestamp using the date command. TODO: Make the formats something which can be controlled through the settings. |
fp_render_menu_block |
includes/ |
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/ |
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/ |
Sets whether the title should be shown on the page or not. |
fp_render_c_fieldset |
includes/ |
This function will return the HTML to contruct a collapsible fieldset, complete with javascript and style tags. |
fp_build_sub_tab_array |
includes/ |
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/ |
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/ |
Draws the CurrentlyAdvisingBox which appears at the top of the screen, containing the student's information like name, major, etc. |
fp_render_greeting |
includes/ |
This displays a friendly message to the user, and provides a logout link at the top. |
fp_render_sub_tab_array |
includes/ |
Similar to render_tab_array. |
fp_render_button |
includes/ |
Returns the HTML to draw a pretty button. |
fp_render_mobile_tab_array |
includes/ |
|
fp_render_tab_array |
includes/ |
Given a propperly formatted tab_array, this will return the HTML to draw it on a page. |
display_not_found |
includes/ |
|
display_access_denied |
includes/ |
|
fp_theme_location |
includes/ |
Return the theme location |
fp_render_curved_line |
includes/ |
Will draw a string in a pretty curved box. Used for displaying semester titles. |
fp_render_square_line |
includes/ |
Will draw a string in a pretty square box. Used for displaying semester titles. |
fp_render_menu_item |
includes/ |
|
pretty_print |
includes/ |
|
install_get_settings_file_template |
./ |
Returns a template for a new settings file. |
install_perform_install |
./ |
Actually performs the installation of FlightPath |
install_display_requirements |
./ |
Displays the requirements on screen for the user. |
install_check_requirements |
./ |
Check for missing requirements of the system. |
install_display_db_form |
./ |
Displays the form to let a user set up a new database |
install_display_lang_selection |
./ |
|
admin_edit_course_form |
modules/ |
This form lets the user edit details about a course. |
admin_display_courses |
modules/ |
This function displays all of our courses for us to edit. |
admin_edit_course_form_submit |
modules/ |
|
admin_add_degree_form |
modules/ |
This form lets the user add a degree to the database. |
admin_display_degrees_popup_add_group |
modules/ |
|
admin_copy_degree_form_submit |
modules/ |
|
admin_copy_degree_form |
modules/ |
This form lets the user copy a degree and all of it's tracks & concentrations. |