function fullcalendar_legend_content_type_render in FullCalendar 7.2
Implements MODULE_PLUGIN_content_type_render().
1 string reference to 'fullcalendar_legend_content_type_render'
- fullcalendar_legend.inc in fullcalendar_legend/
plugins/ content_types/ fullcalendar_legend.inc
File
- fullcalendar_legend/
plugins/ content_types/ fullcalendar_legend.inc, line 20
Code
function fullcalendar_legend_content_type_render($subtype, $conf, $panel_args, $context) {
if (empty($conf['view']) || empty($conf['legend_type'])) {
return;
}
list($name, $display) = explode('-', $conf['view']);
$view = views_get_view($name);
if (empty($view)) {
return;
}
$view
->set_display($display);
return (object) array(
'module' => 'fullcalendar_legend',
'delta' => 'fullcalendar_legend',
'content' => fullcalendar_legend_build_legend($view, $conf['legend_type']),
);
}