function taxonomy_display_term_page_display_content_type_render in Taxonomy display 7
File
- plugins/
content_types/ term_context/ term_page_display.inc, line 25
Code
function taxonomy_display_term_page_display_content_type_render($subtype, $conf, $panel_args, $context) {
$term = isset($context->data) ? clone $context->data : NULL;
$block = new stdClass();
$block->module = 'term_page_display';
if ($term) {
$block->title = $term->name;
$block->delta = $term->tid;
$term_page = taxonomy_display_taxonomy_term_page($term);
$block->content = drupal_render($term_page);
if (user_access('administer taxonomy')) {
$block->admin_links['update'] = array(
'title' => t('Edit term'),
'alt' => t('Edit this term'),
'href' => 'taxonomy/term/' . $term->tid . '/edit',
'query' => drupal_get_destination(),
);
}
}
else {
$block->delta = 'unknown';
}
return $block;
}