You are here

function panels_argument_get_contexts in Panels 6.2

Same name and namespace in other branches
  1. 5.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 793
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_context_id($argument, 'argument')] = $context;
    }
  }
  return $contexts;
}