function _panels_renderer_pipeline_sort in Panels 7.3
Same name and namespace in other branches
- 6.3 includes/plugins.inc \_panels_renderer_pipeline_sort()
Sort callback for sorting renderer pipelines.
Sort first by weight, then by title.
1 string reference to '_panels_renderer_pipeline_sort'
- panels_get_renderer_pipelines in includes/
plugins.inc - Get a list of available renderer pipelines.
File
- includes/
plugins.inc, line 455 - Contains helper code for plugins and contexts.
Code
function _panels_renderer_pipeline_sort($a, $b) {
if ($a->weight == $b->weight) {
if ($a->admin_title == $b->admin_title) {
return 0;
}
return $a->admin_title < $b->admin_title ? -1 : 1;
}
return $a->weight < $b->weight ? -1 : 1;
}