function ctools_string_context in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 plugins/arguments/string.inc \ctools_string_context()
Discover if this argument gives us the term we crave.
1 string reference to 'ctools_string_context'
- string.inc in plugins/
arguments/ string.inc - Plugin to provide an argument handler for a raw string
File
- plugins/
arguments/ string.inc, line 29 - Plugin to provide an argument handler for a raw string
Code
function ctools_string_context($arg = NULL, $conf = NULL, $empty = FALSE) {
// If unset it wants a generic, unfilled context.
if ($empty) {
return ctools_context_create_empty('string');
}
$context = ctools_context_create('string', $arg);
$context->original_argument = $arg;
return $context;
}