You are here

function panels_vid_choose_display in Panels 5.2

Same name and namespace in other branches
  1. 6.2 arguments/vid.inc \panels_vid_choose_display()

Based upon the settings and the context, choose which display to use.

1 string reference to 'panels_vid_choose_display'
panels_vid_panels_arguments in arguments/vid.inc
@file arguments/vid.inc

File

arguments/vid.inc, line 110
arguments/vid.inc

Code

function panels_vid_choose_display($conf, $context) {
  if (empty($context->data)) {
    return;
  }
  if (!empty($conf['displays'][$context->data->vid])) {
    return $context->data->vid;
  }

  // Empty return says to use the default display.
  return;
}