function ctools_context_create_token

Create a context from manual configuration.

Parameters

$empty: Unused.

$data: Unused.

$conf: Unused.

Return value

ctools_context A context of type token, with the plugin set appropriately.

1 string reference to 'ctools_context_create_token'
token.inc in plugins/contexts/token.inc

File

plugins/contexts/token.inc, line 31

Code

function ctools_context_create_token($empty, $data = NULL, $conf = FALSE) {
    $context = new ctools_context('token');
    $context->plugin = 'token';
    return $context;
}