function path_breadcrumbs_ctools_context_user_convert in Path Breadcrumbs 7.3
Convert a context into a string.
1 string reference to 'path_breadcrumbs_ctools_context_user_convert'
- path_breadcrumbs_user.inc in plugins/
contexts/ path_breadcrumbs_user.inc
File
- plugins/
contexts/ path_breadcrumbs_user.inc, line 28
Code
function path_breadcrumbs_ctools_context_user_convert($context, $type) {
$values = token_generate('user', array(
$type => $type,
), array(
'user' => $context->data,
));
if (isset($values[$type])) {
return $values[$type];
}
}