diff --git a/ctools/plugins/content_types/custom/custom.inc b/ctools/plugins/content_types/custom/custom.inc index 366721b..2be5970 100644 --- a/ctools/plugins/content_types/custom/custom.inc +++ b/ctools/plugins/content_types/custom/custom.inc @@ -174,6 +174,17 @@ function ctools_custom_content_type_render($subtype, $conf, $args, $contexts) { $content = ctools_context_keyword_substitute($content, array(), $contexts); } + if ($settings['custom_type'] == 'fixed' && user_access('administer custom content')) { + $block->admin_links = array( + array( + 'title' => t('Configure content pane'), + 'alt' => t("Configure this pane in administer >> site building >> custom content panes"), + 'href' => 'admin/build/ctools-content/list/' . $settings['content']->name . '/edit', + 'query' => drupal_get_destination(), + ), + ); + } + $block->content = check_markup($content, $settings['format'], FALSE); return $block; }