You are here

function panels_get_renderer_pipelines in Panels 6.3

Same name and namespace in other branches
  1. 7.3 includes/plugins.inc \panels_get_renderer_pipelines()

Get a list of available renderer pipelines.

This can be used to form a select or radios widget by enabling sorting. Descriptions are left in.

2 calls to panels_get_renderer_pipelines()
panels_node_form in panels_node/panels_node.module
Implementation of hook_form().
panels_panel_context_edit_settings in plugins/task_handlers/panel_context.inc
General settings for the panel

File

includes/plugins.inc, line 465
Contains helper code for plugins and contexts.

Code

function panels_get_renderer_pipelines($sort = TRUE) {

  // If operating in legacy mode, only the legacy renderer is available:
  if (variable_get('panels_legacy_rendering_mode', TRUE)) {
    return array();
  }
  ctools_include('export');
  $pipelines = ctools_export_crud_load_all('panels_renderer_pipeline');
  if ($sort) {
    uasort($pipelines, '_panels_renderer_pipeline_sort');
  }
  return $pipelines;
}