Functions
Search API
Primary tabs
Name | Location | Description |
---|---|---|
fp_http_request |
includes/ |
Send a request through the Internet and return the result as an object. |
fp_html_print_r |
includes/ |
Similar to print_r, this will return an HTML-friendly click-to-open system similar in design to Krumo. |
fp_goto |
includes/ |
Redirect the user's browser to the specified internal path + query. |
fp_get_system_settings |
includes/ |
|
fp_get_student_name |
includes/ |
|
fp_get_student_majors |
includes/ |
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/ |
Returns back an array of all the available requirement types (by code) that have been defined. |
fp_get_random_string |
includes/ |
Returns a random string of length len. |
fp_get_permissions_for_role |
includes/ |
|
fp_get_module_path |
includes/ |
Return the filepath to the module |
fp_get_module_details |
includes/ |
Simply returns the module's row from the modules table, if it exists. |
fp_get_max_catalog_repeats_for_course |
includes/ |
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/ |
Simple function to convert a string into a machine-readable string. |
fp_get_js_prompt_link |
includes/ |
Creates a javascript "prompt" link, which will ask the user a question. |
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_alert_link |
includes/ |
Creates a javascript "alert" link, which tells the user some message with javascript alert(). |
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_get_files_path |
includes/ |
Convenience function to return the /files system path. Does NOT end with a trailing slash. |
fp_get_faculty_name |
includes/ |
Returns the faculty member's name based on the ID provided. |
fp_get_degree_title |
includes/ |
Quick method to look up title for a degree. |
fp_get_degree_major_code |
includes/ |
Returns the major code for a given degree_id |
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 |
fp_get_degree_classifications |
includes/ |
Return back an assoc array of our set degree classifications, separated by "level" |
fp_get_degree_advising_weight |
includes/ |
|
fp_explode_assoc |
includes/ |
Takes a string (created by fp_join_assoc()) and re-creates the 1 dimensional assoc array. |
fp_display_page |
includes/ |
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/ |
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/ |
Shortcut to fp_debug_current_time_millis() |
fp_clear_cache |
includes/ |
Call all modules which implement hook_clear_cache |
fp_build_tab_array |
includes/ |
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/ |
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/ |
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/ |
Add extra javascript to the page. |
fp_add_css |
includes/ |
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/ |
Add a CSS class to the body tag of the page. Useful for themeing later on. |
fpmct |
includes/ |
Convenience function, will use fp_debug_ct() to display a message, and the number of miliseconds since its last call. |
fpm |
includes/ |
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/ |
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/ |
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/ |
Register a form_error in the SESSION. |
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. |
format_date |
includes/ |
Format a timestamp using the date command. TODO: Make the formats something which can be controlled through the settings. |
filter_xss_split |
includes/ |
Like the filter_xss function, this is taken from D7's _filter_xss_split function |
filter_xss_bad_protocol |
includes/ |
|
filter_xss_attributes |
includes/ |
|
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_markup |
includes/ |
Filter HTML, allowing only certain tags, and removing dangerous attributes. |
example_helper_menu |
custom/ |
Implementation of hook_menu |
example_helper_init |
custom/ |
Implementation of "hook_init". |
example_helper_display_hello_world_page |
custom/ |
Display our Hello World page to the user. |