TRUE, 'title' => t('Taxonomy image'), //'icon' => 'icon_txn_image.png', 'description' => t('Term image.'), 'required context' => new ctools_context_required(t('Term'), 'term'), 'category' => t('Taxonomy term'), ); function site_helper_taxonomy_image_content_type_render($subtype, $conf, $panel_args, $context) { $term = isset($context->data) ? drupal_clone($context->data) : NULL; $block = new stdClass(); $block->module = 'node_type'; $block->title = $term->name; if ($term) { $block->delta = $term->tid; $block->content = taxonomy_image_display($term->tid); } else { $block->content = ''; $block->delta = 'unknown'; } return $block; } function site_helper_taxonomy_image_content_type_admin_title($subtype, $conf, $context) { return t('"@s" term image', array('@s' => $context->identifier)); } function site_helper_taxonomy_image_content_type_edit_form(&$form, &$form_state) { // provide a blank form so we have a place to have context setting. }