You are here

function panels_argument_get_contexts in Panels 5.2

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

Retrieve a list of empty contexts for all arguments

1 call to panels_argument_get_contexts()
panels_context_load_contexts in includes/plugins.inc
Get a group of empty contexts for the object; this assumes all the standard context types, and doesn't punish you if they aren't available.

File

includes/plugins.inc, line 787
plugins.inc

Code

function panels_argument_get_contexts($arguments) {
  $contexts = array();
  foreach ($arguments as $argument) {
    $context = panels_argument_get_context($argument, NULL, true);
    if ($context) {
      $contexts[panels_argument_context_id($argument)] = $context;
    }
  }
  return $contexts;
}