function panels_node_add_context in Panels 6.2
Same name and namespace in other branches
- 5.2 arguments/node_add.inc \panels_node_add_context()
Discover if this argument gives us the node we crave.
1 string reference to 'panels_node_add_context'
- panels_node_add_panels_arguments in arguments/
node_add.inc - @file arguments/nid.inc
File
- arguments/
node_add.inc, line 28 - arguments/nid.inc
Code
function panels_node_add_context($arg = NULL, $conf = NULL, $empty = FALSE) {
// If unset it wants a generic, unfilled context.
if (!isset($arg)) {
return panels_context_create_empty('node_add_form');
}
if (array_filter($conf['types']) && empty($conf['types'][$arg])) {
return PANELS_ARG_USE_FALLBACK;
}
return panels_context_create('node_add_form', $arg);
}