5 * {{ plugin_name }} content type plugin.
13 'title' => t('{{ plugin_name }}'),
14 'description' => t('{{ description }}'),
15 {% if context == 'Node' or context == 'User' %}
16 'required context' => new ctools_context_required(t('{{ context }}'), '{{ context|lower }}'),
17 {% elseif context == 'Term' %}
18 'required context' => new ctools_context_required(t('{{ context }}'), array('term', 'taxonomy_term')),
20 'category' => t('{{ category }}'),
21 'render callback' => '{{ machine_name }}_{{ plugin_machine_name }}_content_type_render',
27 function {{ machine_name }}_{{ plugin_machine_name }}_content_type_render($subtype, $conf, $panel_args, $context) {
28 {% if context != '-' %}
30 if (empty($context->data)) {
35 {% if context == 'Node' or context == 'Term' %}
36 ${{ context|lower }} = clone $context->data;
37 {% elseif context == 'User' %}
38 {# Use $account variable to avoid confusion with the global $user object #}
39 $account = clone $context->data;
42 // Build pane content.
44 '#markup' => 'Content placeholder.',
47 $block = new stdClass();
48 $block->module = '{{ machine_name }}';
49 $block->title = t('Title placeholder');
50 $block->content = $build;