Functions

Primary tabs

Contains filters are case sensitive
Namesort descending Location Description
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_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_explode_assoc includes/misc.inc Takes a string (created by fp_join_assoc()) and re-creates the 1 dimensional assoc array.
fp_get_alert_count_by_type includes/misc.inc Returns back the total, read, and unread numbers previously calculated to see if we need to place a badge next to the bell icon at the top of the screen. If unset, we will call the recalculate function.
fp_get_degree_advising_weight includes/db.inc
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
fp_get_degree_major_code includes/db.inc Returns the major code for a given degree_id
fp_get_degree_title includes/db.inc Quick method to look up title for a degree.
fp_get_departments includes/misc.inc Returns an array (suitable for form api) of departments on campus which faculty/staff can be members of.
fp_get_faculty_email includes/db.inc
fp_get_faculty_name includes/db.inc Returns the faculty member's name based on the ID provided.
fp_get_files_path includes/misc.inc Convenience function to return the /files system path. Does NOT end with a trailing slash.
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_js_alert_link includes/misc.inc Creates a javascript "alert" link, which tells the user some message with javascript alert().
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_prompt_link includes/misc.inc Creates a javascript "prompt" link, which will ask the user a question.
fp_get_machine_readable includes/misc.inc Simple function to convert a string into a machine-readable string.
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_module_details includes/misc.inc Simply returns the module's row from the modules table, if it exists.
fp_get_module_path includes/misc.inc Return the filepath to the module
fp_get_permissions_for_role includes/db.inc
fp_get_random_string includes/misc.inc Returns a random string of length len.
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_session_id_from_str includes/misc.inc This will validate the session str (or the session_id.
fp_get_session_str includes/misc.inc This function will provide the session_id as a string, as well as a secret token we can use to make sure the session_id is authentic and came from us and not a hacker.
fp_get_student_email 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_student_name includes/db.inc
fp_get_user_timezone includes/db.inc Returns back the timezone for this user, if selected. If not, we return back the system timezone.
fp_goto includes/misc.inc Redirect the user's browser to the specified internal path + query.
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_http_request includes/misc.inc Send a request through the Internet and return the result as an object.
fp_join_assoc includes/misc.inc This function will create a string from a 1 dimensional assoc array. Ex: arr = array("pet" => "dog", "name" => "Rex") will return: pet_S-dog,name_S-Rex under the default settings.
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_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.
fp_mail includes/misc.inc Send an email. Drop-in replacement for PHP's mail() command, but can use SMTP protocol if enabled.
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...
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_push_and_balance_profile_items includes/theme.inc This function accepts a "profile items" array by reference, which is presumed to have a "left_side" and a "right_side" already defined. We can "push" items onto it, and the item will automatically go to the…
fp_query_string_encode includes/misc.inc Adapted from https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_...
fp_random_bytes includes/password.inc
fp_rebuild_modules_list includes/db.inc Re-query the modules table and re-add to our global array.
fp_recalculate_alert_count_by_type includes/misc.inc Invokes a hook to get numbers on the total, read, and unread values from our modules, to find out if we need to place a badge on the bell icon at the top of the screen.
fp_reduce_whitespace includes/misc.inc Simple helper function to reduce whitespace (like double-spaces)
fp_render_array includes/render.inc This takes a render_array and generates the HTML for it. This usually is not called directly, but instead you should call fp_render_content() or fp_render_form()
fp_render_breadcrumbs includes/theme.inc Return the HTML for breadcrumbs for the current page we are on. Will skip any breadcrumbs we do not have permission to access.
fp_render_button includes/theme.inc Returns the HTML to draw a pretty button.
fp_render_content includes/render.inc This is very similar to fp_get_form / fp_render_form, except in this case we are being passed the completed "render_array", which already contains all of our elements. We will call hooks on it, sort by weights, and then return the rendered…

Pages