From 5c038bc6265d40d3065e9a86d28c4e2f0c3b72c9 Mon Sep 17 00:00:00 2001
From: Earl Miles <merlin@logrus.com>
Date: Fri, 16 Jan 2009 07:33:10 +0000
Subject: [PATCH] #353283 by msonnabaum: Ensure plugins.inc is loaded for
 ctools_create_context

---
 includes/context.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/includes/context.inc b/includes/context.inc
index 9be416db..ea279982 100644
--- a/includes/context.inc
+++ b/includes/context.inc
@@ -337,6 +337,7 @@ function _ctools_context_select($contexts, $required, $context) {
  *   A $context or NULL if one could not be created.
  */
 function ctools_context_create($type, $data = NULL, $conf = FALSE) {
+  ctools_include('plugins');
   if ($function = ctools_plugin_load_function('ctools', 'contexts', $type, 'context')) {
     return $function(FALSE, $data, $conf);
   }
-- 
GitLab