You are here

function panels_context_create in Panels 6.2

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

Create a new context.

Parameters

$type: The type of context to create; this loads a plugin.

$data: The data to put into the context.

$empty: Whether or not this context is specifically empty.

$conf: A configuration structure if this context was created via UI.

Return value

A $context or NULL if one could not be created.

14 calls to panels_context_create()
panels_book_parent_context in relationships/book_parent.inc
Return a new context based on an existing context
panels_nid_context in arguments/nid.inc
Discover if this argument gives us the node we crave.
panels_node_add_context in arguments/node_add.inc
Discover if this argument gives us the node we crave.
panels_node_edit_content in panels_node/panels_node.module
Pass through to the panels content editor.
panels_node_edit_context in arguments/node_edit.inc
Discover if this argument gives us the node we crave.

... See full list

File

includes/plugins.inc, line 1100
plugins.inc

Code

function panels_context_create($type, $data = NULL, $conf = FALSE) {
  if ($function = panels_plugin_get_function('contexts', $type, 'context')) {
    return $function(FALSE, $data, $conf);
  }
}