function ctools_context_query_string_convert

Convert a context into a string.

1 string reference to 'ctools_context_query_string_convert'
query_string.inc in plugins/contexts/query_string.inc
Context plugin that can extract arbitrary values from the query string.

File

plugins/contexts/query_string.inc, line 82

Code

function ctools_context_query_string_convert($context, $type) {
    switch ($type) {
        case 'raw':
            return $context->data;
        case 'html_safe':
            return check_plain($context->data);
    }
}