Functions
Search API
Primary tabs
Name | Location | Description |
---|---|---|
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/ |
|
ppm |
includes/ |
Alias of pretty_print($var) |
pretty_print |
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() |
fp_get_form |
includes/ |
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_render_form |
includes/ |
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/ |
Clear the form submissions variable from the SESSION for this callback. |
form_basic_validate |
includes/ |
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/ |
Register a form_error in the SESSION. |
form_has_errors |
includes/ |
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_element |
includes/ |
Returns the HTML to render this form (or content) 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,… |
_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/ |
|
arg |
includes/ |
Returns the component of the page's path. |
fp_http_request |
includes/ |
Send a request through the Internet and return the result as an object. |
timer_start |
includes/ |
Begin a microtime timer for later use. |
timer_read |
includes/ |
Works with the timer_start() function to return how long it has been since the start. |
fp_get_random_string |
includes/ |
Returns a random string of length len. |
fp_clear_cache |
includes/ |
Call all modules which implement hook_clear_cache |
fp_no_html_xss |
includes/ |
Remove any possiblilty of a malicious attacker trying to inject nonsense. From: https://paragonie.com/blog/2015/06/preventing-xss-vulnerabilities-in-php... |
filter_markup |
includes/ |
Filter HTML, allowing only certain tags, and removing dangerous attributes. |
filter_xss |
includes/ |
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_xss_split |
includes/ |
Like the filter_xss function, this is taken from D7's _filter_xss_split function |
filter_xss_attributes |
includes/ |
|
filter_xss_bad_protocol |
includes/ |
|
fp_strip_dangerous_protocols |
includes/ |
|
fp_validate_utf8 |
includes/ |
|
fp_get_machine_readable |
includes/ |
Simple function to convert a string into a machine-readable string. |
fp_get_degree_classifications |
includes/ |
Return back an assoc array of our set degree classifications, separated by "level" |
fp_get_degree_classification_details |
includes/ |
Returns back an assoc array for the supplied code. Looks like: $arr["level_num"] = number $arr["title"] = the title |
get_term_structures |
includes/ |
Return an array version of the term_id_structure field from the admin settings |
fp_get_requirement_types |
includes/ |
Returns back an array of all the available requirement types (by code) that have been defined. |