function fp_url

6.x misc.inc fp_url($path, $query = "", $include_base_path = TRUE)
4.x misc.inc fp_url($path, $query = "", $include_base_path = TRUE)
5.x misc.inc fp_url($path, $query = "", $include_base_path = TRUE)

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.

18 calls to fp_url()
admin_display_watchdog in modules/admin/admin.module
Displays recent watchdog entries, from the watchdog table
admin_edit_group_form in modules/admin/admin.groups.inc
This function lets the user edit a group.
blank_degrees_display_blank_degree in modules/blank_degrees/blank_degrees.module
blank_degrees_select_degree_form in modules/blank_degrees/blank_degrees.module
This form lets the user select which degree they wish to view.
blocks_manage_blocks_form in modules/blocks/blocks.module
This form lets the user manage the various blocks in the system.

... See full list

File

includes/misc.inc, line 1010
This file contains misc functions for FlightPath

Code

function fp_url($path, $query = "", $include_base_path = TRUE) {

  // If clean URLs are enabled, we should begin with a ?, if not, use an &

  // TODO: make sure that works.

  $rtn = "";
  if ($include_base_path) {
    $rtn .= base_path() . "/";
  }

  $rtn .= $path;

  if ($query != "") {
    $rtn .= "?";
    $rtn .= $query;
  }

  return $rtn;

}