You are here

function _pdf_export_get_base_path in PDF Export 7

Helper to get the base path for images.

Parameters

string $theme_path: Selected theme path.

bool $rewrite_basic_auth: TRUE if the basic auth rewrite is enabled.

Return value

string The theme base path.

1 call to _pdf_export_get_base_path()
pdf_export_render in ./pdf_export.module
Handle the html as PDF.

File

./pdf_export.module, line 184
PDF Export module.

Code

function _pdf_export_get_base_path($theme_path, $rewrite_basic_auth) {
  $base_path = variable_get('pdf_export_site_domain', NULL);
  $styles = $theme_path;
  if (empty($base_path)) {
    return _pdf_export_generate_base_path($styles, $rewrite_basic_auth);
  }
  return $base_path . '/' . $styles;
}