function 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
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);
}