function ctools_plugin_example_simplecontext_content_type_admin_info

Callback to provide administrative info (the preview in panels when building a panel).

In this case we'll render the content with a dummy argument and a dummy context.

1 string reference to 'ctools_plugin_example_simplecontext_content_type_admin_info'
simplecontext_content_type.inc in ctools_plugin_example/plugins/content_types/simplecontext_content_type.inc
Sample ctools content type that takes advantage of context.

File

ctools_plugin_example/plugins/content_types/simplecontext_content_type.inc, line 53

Code

function ctools_plugin_example_simplecontext_content_type_admin_info($subtype, $conf, $context = NULL) {
    $context = new stdClass();
    $context->data = new stdClass();
    $context->data->description = t("no real context");
    $block = simplecontext_content_type_render($subtype, $conf, array(
        "Example",
    ), $context);
    return $block;
}