You are here

function path_breadcrumbs_ctools_context_site_convert in Path Breadcrumbs 7.3

Convert a context into a string.

1 string reference to 'path_breadcrumbs_ctools_context_site_convert'
path_breadcrumbs_site.inc in plugins/contexts/path_breadcrumbs_site.inc

File

plugins/contexts/path_breadcrumbs_site.inc, line 36

Code

function path_breadcrumbs_ctools_context_site_convert($context, $type) {
  $values = token_generate('site', array(
    $type => $type,
  ));
  if (isset($values[$type])) {
    return $values[$type];
  }
  return '';
}