function panels_term_choose_display in Panels 5.2
Same name and namespace in other branches
- 6.2 arguments/term.inc \panels_term_choose_display()
Based upon the settings and the context, choose which display to use.
1 string reference to 'panels_term_choose_display'
- panels_term_panels_arguments in arguments/
term.inc - @file arguments/term.inc
File
- arguments/
term.inc, line 182 - arguments/term.inc
Code
function panels_term_choose_display($conf, $context) {
if (empty($context->data)) {
return;
}
if (!empty($conf['displays'][$context->data->vid])) {
return $context->data->vid;
}
// Please note that 'default' is a special display.
if (!empty($conf['own_default'])) {
return 'default';
}
// Empty return says to use the default display.
return;
}