Primary tabs

Contains filters are case sensitive
Name Locationsort descending Description
fp_explode_assoc includes/ Takes a string (created by fp_join_assoc()) and re-creates the 1 dimensional assoc array.
fp_get_module_path includes/ Return the filepath to the module
fp_get_files_path includes/ Convenience function to return the /files system path. Does NOT end with a trailing slash.
fp_user_is_student includes/ Simply returns TRUE or FALSE if the user is a student. (has the is_student == 1
fp_get_module_details includes/ Simply returns the module's row from the modules table, if it exists.
t includes/ This function will facilitate translations by using hook_translate()
st includes/ Provides translation functionality when database is not available.
base_path includes/ Shortcut for getting the base_path variable from the global system settings.
get_term_description includes/ Convert a term ID into a description. Ex: 20095 = Spring of 2009.
fp_goto includes/ Redirect the user's browser to the specified internal path + query.
l includes/ This works like Drupal's l() function for creating links. Ex: l("Click here for course search!", "tools/course-search", "abc=xyz&hello=goodbye", array("class" => "my-class")); Do not…
fp_url includes/ This function will take a path, ex: "admin/config/module" and a query, ex: "nid=5&whatever=yes" And join them together, respecting whether or not clean URL's are enabled.
fp_screen_is_mobile includes/ This function will attempt to determine automatically if we are on a mobile device, and should therefor use the mobile theme and layout settings.
modules_implement_hook includes/ Return an array of enabled modules which implement the provided hook. Do not include the preceeding "_" on the hook name!
invoke_hook includes/ Invoke all module hooks for the supplied hook.
fpm includes/ Uses fp_add_message, but in this case, it also adds in the filename and line number which the message came from!
depricated_message includes/ Displays a depricated message on screen. Useful for tracking down when depricated functions are being used.
fpmct includes/ Convenience function, will use fp_debug_ct() to display a message, and the number of miliseconds since its last call.
fp_html_print_r includes/ Similar to print_r, this will return an HTML-friendly click-to-open system similar in design to Krumo.
get_shorter_catalog_year_range includes/ This is used usually when being viewed by a mobile device. It will shorten a catalog year range of 2008-2009 to just "08-09" or "2008-09" or even "09-2009".
include_module includes/ This will find and include the module in question, calling it's hook_init() function if it has one.
include_module_install includes/ Find and include the module's .install file, if it exists. Returns TRUE or FALSE if it was able to find & include the file.
fp_get_js_confirm_link includes/ 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/ Creates a javascript "prompt" link, which will ask the user a question.
fp_get_js_alert_link includes/ Creates a javascript "alert" link, which tells the user some message with javascript alert().
fp_reduce_whitespace includes/ Simple helper function to reduce whitespace (like double-spaces)
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_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_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_query_string_encode includes/ Adapted from
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_get_terms_by_year_range includes/ Returns back a FAPI-compatible array of all term codes for the specified years, inclusive
fp_trim includes/ Adding fp_trim function for backwards compatibility with FP 7
fp_get_departments includes/ Returns an array (suitable for form api) of departments on campus which faculty/staff can be members of.
_password_itoa64 includes/ Returns a string for mapping an int to the corresponding base 64 character.
_password_base64_encode includes/ Encodes bytes into printable base 64 using the *nix standard from crypt().
_password_generate_salt includes/ Generates a random base 64-encoded salt prefixed with settings for the hash.
fp_random_bytes includes/
_password_enforce_log2_boundaries includes/ Ensures that $count_log2 is within set bounds.
_password_crypt includes/ Hash a password using a secure stretched hash.
_password_get_count_log2 includes/ Parse the log2 iteration count from a stored hash or setting string.
user_hash_password includes/ Hash a password using a secure hash.
user_check_password includes/ Check whether a plain text password matches a stored hashed password.
user_needs_new_hash includes/
fp_render_content includes/ 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…
fp_render_array includes/ 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()