function 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 30

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