You are here

function ctools_node_add_context in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 plugins/arguments/node_add.inc \ctools_node_add_context()

Discover if this argument gives us the node we crave.

1 string reference to 'ctools_node_add_context'
node_add.inc in plugins/arguments/node_add.inc
Plugin to provide an argument handler for a Node add form.

File

plugins/arguments/node_add.inc, line 23
Plugin to provide an argument handler for a Node add form.

Code

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

  // If unset it wants a generic, unfilled context.
  if (!isset($arg)) {
    return ctools_context_create_empty('node_add_form');
  }
  return ctools_context_create('node_add_form', $arg);
}