function _panopoly_magic_render_add_content_link in Panopoly 7
Helper function to render the Panels add content link.
1 call to _panopoly_magic_render_add_content_link()
- panopoly_magic_process_panels_add_content_modal in modules/
panopoly/ panopoly_magic/ panopoly_magic.module - Process the panels_add_content_modal() to adjust the markup to present the preview
File
- modules/
panopoly/ panopoly_magic/ panopoly_magic.module, line 1790
Code
function _panopoly_magic_render_add_content_link($vars, $content_type, $title) {
$content_type['title'] = t('Add <span class="element-invisible">@widget_name</span>', array(
'@widget_name' => $title,
));
$content_type['panopoly_magic_add_button'] = TRUE;
// @todo: Investigate why view_panes are missing description.
if (empty($content_type['description'])) {
$content_type['description'] = $title;
}
return theme('panels_add_content_link', array(
'renderer' => $vars['renderer'],
'region' => $vars['region'],
'content_type' => $content_type,
));
}