Skip to content
Snippets Groups Projects
Commit 5c038bc6 authored by Earl Miles's avatar Earl Miles
Browse files

#353283 by msonnabaum: Ensure plugins.inc is loaded for ctools_create_context

parent d618b8c2
No related branches found
No related tags found
No related merge requests found
...@@ -337,6 +337,7 @@ function _ctools_context_select($contexts, $required, $context) { ...@@ -337,6 +337,7 @@ function _ctools_context_select($contexts, $required, $context) {
* A $context or NULL if one could not be created. * A $context or NULL if one could not be created.
*/ */
function ctools_context_create($type, $data = NULL, $conf = FALSE) { function ctools_context_create($type, $data = NULL, $conf = FALSE) {
ctools_include('plugins');
if ($function = ctools_plugin_load_function('ctools', 'contexts', $type, 'context')) { if ($function = ctools_plugin_load_function('ctools', 'contexts', $type, 'context')) {
return $function(FALSE, $data, $conf); return $function(FALSE, $data, $conf);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment