summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2011-07-25 19:18:44 (GMT)
committer Earl Miles2011-07-25 19:18:56 (GMT)
commit6b1ceaffc6e2df8420875f4ad76c666cabbae1cf (patch)
tree56478cbb08abfb8c56d74daae15ede5ea41c4a6b
parent9c5c379eccb08797e30f532a165dfcd8996e41d5 (diff)
Issue #1142812: Make sure export.inc is loaded during #ajax operations.
-rw-r--r--plugins/export_ui/ctools_export_ui.class.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/export_ui/ctools_export_ui.class.php b/plugins/export_ui/ctools_export_ui.class.php
index a296310..7fe0055 100644
--- a/plugins/export_ui/ctools_export_ui.class.php
+++ b/plugins/export_ui/ctools_export_ui.class.php
@@ -1311,6 +1311,10 @@ function ctools_export_ui_list_form_submit(&$form, &$form_state) {
* This simply loads the object defined in the plugin and hands it off.
*/
function ctools_export_ui_edit_item_form($form, &$form_state) {
+ // When called using #ajax via ajax_form_callback(), 'export' may
+ // not be included so include it here.
+ ctools_include('export');
+
$form = array();
$form_state['object']->edit_form($form, $form_state);
return $form;
@@ -1401,6 +1405,10 @@ function ctools_export_ui_delete_confirm_form($form, &$form_state) {
* This simply loads the object defined in the plugin and hands it off.
*/
function ctools_export_ui_edit_item_wizard_form($form, &$form_state) {
+ // When called using #ajax via ajax_form_callback(), 'export' may
+ // not be included so include it here.
+ ctools_include('export');
+
$method = 'edit_form_' . $form_state['step'];
if (!method_exists($form_state['object'], $method)) {
$method = 'edit_form';