function views_content_context_get_view

API function to get the view.

7 calls to views_content_context_get_view()
views_content_context_get_output in views_content/views_content.module
API function to get the view.
views_content_node_from_view_context in views_content/plugins/relationships/node_from_view.inc
Return a new context based on an existing context.
views_content_term_from_view_context in views_content/plugins/relationships/term_from_view.inc
Return a new context based on an existing context.
views_content_user_from_view_context in views_content/plugins/relationships/user_from_view.inc
Return a new context based on an existing context.
views_content_views_row_content_type_admin_info in views_content/plugins/content_types/views_row.inc

... See full list

File

views_content/views_content.module, line 163

Code

function views_content_context_get_view(&$context) {
    if (empty($context->view) || get_class($context->view) == '__PHP_Incomplete_Class') {
        $context->view = views_get_view($context->data['name']);
        if ($context->view) {
            $context->view
                ->set_display($context->data['display']);
            $context->view
                ->set_arguments($context->data['args']);
        }
    }
    return $context->view;
}