Functions

Primary tabs

Contains filters are case sensitive
Namesort ascending Location Description
fp_http_request includes/misc.inc Send a request through the Internet and return the result as an object.
fp_html_print_r includes/misc.inc Similar to print_r, this will return an HTML-friendly click-to-open system similar in design to Krumo.
fp_goto includes/misc.inc Redirect the user's browser to the specified internal path + query.
fp_get_system_settings includes/db.inc
fp_get_student_name includes/db.inc
fp_get_student_majors includes/db.inc Return back the codes or records for a student's degrees, based on what is in the student_degrees table (thanks to system.module), as well as what we get from hooks.
fp_get_requirement_types includes/misc.inc Returns back an array of all the available requirement types (by code) that have been defined.
fp_get_random_string includes/misc.inc Returns a random string of length len.
fp_get_permissions_for_role includes/db.inc
fp_get_module_path includes/misc.inc Return the filepath to the module
fp_get_module_details includes/misc.inc Simply returns the module's row from the modules table, if it exists.
fp_get_max_catalog_repeats_for_course includes/db.inc Figure out the maximum number of times this course can be repeated for credit, based on what is stored in the course catalog.
fp_get_machine_readable includes/misc.inc Simple function to convert a string into a machine-readable string.
fp_get_js_prompt_link includes/misc.inc Creates a javascript "prompt" link, which will ask the user a question.
fp_get_js_confirm_link includes/misc.inc Creates a javascript "confirm" link, so when clicked it asks the user a question, then proceeds if they select OK. The main reason I want to do this is so I can pass the $question through my t() function. (do it when you call this function)
fp_get_js_alert_link includes/misc.inc Creates a javascript "alert" link, which tells the user some message with javascript alert().
fp_get_form includes/render.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.
fp_get_files_path includes/misc.inc Convenience function to return the /files system path. Does NOT end with a trailing slash.
fp_get_faculty_name includes/db.inc Returns the faculty member's name based on the ID provided.
fp_get_degree_title includes/db.inc Quick method to look up title for a degree.
fp_get_degree_major_code includes/db.inc Returns the major code for a given degree_id
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
fp_get_degree_classifications includes/misc.inc Return back an assoc array of our set degree classifications, separated by "level"
fp_get_degree_advising_weight includes/db.inc
fp_explode_assoc includes/misc.inc Takes a string (created by fp_join_assoc()) and re-creates the 1 dimensional assoc array.
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_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_debug_ct includes/misc.inc Shortcut to fp_debug_current_time_millis()
fp_clear_cache includes/misc.inc Call all modules which implement hook_clear_cache
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_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_add_message includes/misc.inc Add a "message" to the top of the screen. Useful for short messages like "You have been logged out" or "Form submitted successfully."
fp_add_js includes/misc.inc Add extra javascript to the page.
fp_add_css includes/misc.inc Add an extra CSS file to the page with this function. Ex: fp_add_css(fp_get_module_path("admin") . '/css/admin.css');
fp_add_body_class includes/misc.inc Add a CSS class to the body tag of the page. Useful for themeing later on.
fpmct includes/misc.inc Convenience function, will use fp_debug_ct() to display a message, and the number of miliseconds since its last call.
fpm includes/misc.inc Uses fp_add_message, but in this case, it also adds in the filename and line number which the message came from!
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…
form_has_errors includes/render.inc Returns TRUE or FALSE if there have been errors for this form submission (We will just look in the SESSION to find out).
form_error includes/render.inc Register a form_error in the SESSION.
form_basic_validate includes/render.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.
format_date includes/theme.inc Format a timestamp using the date command. TODO: Make the formats something which can be controlled through the settings.
filter_xss_split includes/misc.inc Like the filter_xss function, this is taken from D7's _filter_xss_split function
filter_xss_bad_protocol includes/misc.inc
filter_xss_attributes includes/misc.inc
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_markup includes/misc.inc Filter HTML, allowing only certain tags, and removing dangerous attributes.
example_helper_menu custom/modules/example_helper/example_helper.module Implementation of hook_menu
example_helper_init custom/modules/example_helper/example_helper.module Implementation of "hook_init".
example_helper_display_hello_world_page custom/modules/example_helper/example_helper.module Display our Hello World page to the user.

Pages