function fp_theme_location

6.x fp_theme_location($bool_include_base_path = TRUE)
4.x fp_theme_location($bool_include_base_path = TRUE)
5.x fp_theme_location($bool_include_base_path = TRUE)

Return the theme location

16 calls to fp_theme_location()
admin_display_groups in modules/admin/
This function will display a list of all our groups.
admin_display_groups_popup_select_icon in modules/admin/
This popup is called from the edit group page. It lets the user select an icon to assign to a group.
admin_edit_group_form in modules/admin/
This function lets the user edit a group.
AdvisingScreen::build_footnotes in classes/AdvisingScreen.php
Constructs the HTML which will show footnotes for substitutions and transfer credits.
AdvisingScreen::display_popup_course_description in classes/AdvisingScreen.php
Displays the contents of the Descripton tab for the course popup.

... See full list


includes/, line 2094


function fp_theme_location($bool_include_base_path = TRUE) {

  $p = variable_get("theme", 'themes/fp6_clean');

  // The theme hasn't been set for some reason
  if ($p == "") {
    $p = "themes/fp6_clean";

  if ($bool_include_base_path) {
    $bp = base_path();

    // The following code is to fix a bug where we might end up with // as our location, if our base_path is simply "/", meaning,
    // the site is located on a bare domain.
    if ($bp != "/") {
      $p = base_path() . "/" . $p;
    else {
      $p = "/" . $p;

  return $p;