You are here

function panels_everywhere_page_content_context in Panels Everywhere 6

Same name and namespace in other branches
  1. 7 plugins/arguments/page_content.inc \panels_everywhere_page_content_context()

Discover if this argument gives us the term we crave.

1 string reference to 'panels_everywhere_page_content_context'
page_content.inc in plugins/arguments/page_content.inc

File

plugins/arguments/page_content.inc, line 34

Code

function panels_everywhere_page_content_context($arg = NULL, $conf = NULL, $empty = FALSE) {

  // If unset it wants a generic, unfilled context.
  if ($empty) {
    return ctools_context_create_empty('page_content');
  }
  if (is_array($arg)) {
    $arg = (object) $arg;
  }
  $context = ctools_context_create('page_content', $arg);
  $context->original_argument = $arg;
  return $context;
}