summaryrefslogtreecommitdiff
path: root/sites/all/modules/ctools/plugins/export_ui/ctools_export_ui.inc
diff options
context:
space:
mode:
Diffstat (limited to 'sites/all/modules/ctools/plugins/export_ui/ctools_export_ui.inc')
-rw-r--r--sites/all/modules/ctools/plugins/export_ui/ctools_export_ui.inc24
1 files changed, 24 insertions, 0 deletions
diff --git a/sites/all/modules/ctools/plugins/export_ui/ctools_export_ui.inc b/sites/all/modules/ctools/plugins/export_ui/ctools_export_ui.inc
new file mode 100644
index 000000000..4e0a84978
--- /dev/null
+++ b/sites/all/modules/ctools/plugins/export_ui/ctools_export_ui.inc
@@ -0,0 +1,24 @@
+<?php
+
+/**
+ * The default plugin exists only to provide the base class. Other plugins
+ * which do not provide a class will get this class instead. Any classes
+ * provided should use this class as their parent:
+ *
+ * @code
+ * 'handler' => array(
+ * 'class' => 'ctools_export_ui_mine',
+ * 'parent' => 'ctools_export_ui',
+ * ),
+ * @endcode
+ *
+ * Using the above notation will ensure that this plugin's is loaded before
+ * the child plugin's class and avoid whitescreens.
+ */
+$plugin = array(
+ // As this is the base class plugin, it shouldn't declare any menu items.
+ 'has menu' => FALSE,
+ 'handler' => array(
+ 'class' => 'ctools_export_ui',
+ ),
+);