function ctools_context_get_plugin

Get the data belonging to a particular context.

3 calls to ctools_context_get_plugin()
ctools_context_add_item_to_form in includes/context-admin.inc
Add a row to the form. Used both in the main form and by the ajax to add an item.
ctools_context_ajax_item_add in includes/context-admin.inc
Ajax entry point to add an context
ctools_context_ajax_item_edit in includes/context-admin.inc
Ajax entry point to edit an item

File

includes/context-admin.inc, line 77

Code

function ctools_context_get_plugin($type, $name) {
    $info = ctools_context_info($type);
    if (function_exists($info['context function'])) {
        return $info['context function']($name);
    }
}