Functions

Primary tabs

Contains filters are case sensitive
Name Locationsort ascending Description
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_get_machine_readable includes/misc.inc Simple function to convert a string into a machine-readable string.
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_js_alert_link includes/misc.inc Creates a javascript "alert" link, which tells the user some message with javascript alert().
fp_reduce_whitespace includes/misc.inc Simple helper function to reduce whitespace (like double-spaces)
get_term_structures includes/misc.inc Return an array version of the term_id_structure field from the admin settings
fp_get_module_details includes/misc.inc Simply returns the module's row from the modules table, if it exists.
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.
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_convert_replacement_pattern includes/menu.inc Look for modules implementing hook_menu_handle_replacement_pattern, and apply to str.
menu_get_menu_router_item_from_db includes/menu.inc Return array from menu_router for this item. *
hook_form_alter includes/hook.api.php Alter forms which are created using the Form API
hook_validate includes/hook.api.php Validates form submissions from the Form API
hook_submit includes/hook.api.php Handle submissions from the Form API
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_cron includes/hook.api.php This hook is called every time the system cron is run.
hook_install includes/hook.api.php This hook will be executed the first time a module is enabled in the system.
hook_enable includes/hook.api.php This hook will be executed when a module is enabled in the system. It will be executed AFTER hook_install.
hook_disable includes/hook.api.php This hook will be executed when a module is disabled in the system.
hook_uninstall includes/hook.api.php This hook will be executed when a module is "uninstalled" in the system. Once a module is disabled, an "uninstall" link will appear.
hook_init includes/hook.api.php Allows each module to execute code when the module is first loaded.
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_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_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.
hook_status includes/hook.api.php Reports status information which each module is aware of, visible on admin/config/status.
hook_exit includes/hook.api.php Allows each module to execute code when the FlightPath page is completely finished.
hook_student_load includes/hook.api.php Allows modules to hook in after a new student object is created.
fp_get_form includes/forms.inc This function gets the form array, where the callback is the same as form_id. It will also look for modules which may want to alter the form, using hook_form_alter, and go ahead and apply that.
form_field_sort_compare_by_weight includes/forms.inc This function is meant to be used by the uasort command, to help re-order a form array based on each element's weight value. If weight is blank, it is assumed to be 0 (zero).
fp_render_form includes/forms.inc Render the form array from the callback to the screen, and set the form to save itself in our default submit handler. Valid form_types are: "system_settings" => values automatically saved to variables table. "normal" or BLANK…
clear_session_form_values includes/forms.inc Clear the form submissions variable from the SESSION for this callback.
form_basic_validate includes/forms.inc This is a very basic valiator for form API submission. All I really care about is making sure required fields have a value in them. If they do not, we will file a form_error.
form_error includes/forms.inc Register a form_error in the SESSION.
form_has_errors includes/forms.inc Returns TRUE or FALSE if there have been errors for this form submission (We will just look in the SESSION to find out).
fp_render_form_element includes/forms.inc Returns the HTML to render this form element to the screen. $name is the HTML machine name. $element is an array containing all we need to render it. If you want default values to be taken from the SESSION (because we had form_errors, say, and…
watchdog includes/db.inc Add a log entry to the watchdog (log) table.
fp_get_faculty_name includes/db.inc Returns the faculty member's name based on the ID provided.
fp_load_user includes/db.inc Returns back a user object for this user_id. If the user is not found in the users table, it will return NULL. If the user_id requested is 0, the anonymous user object is returned.

Pages