function ctools_export_ui::edit_wizard_finish
Wizard 'cancel' callback when using a wizard to edit an item.
The wizard callback delegates this back to the object.
1 call to ctools_export_ui::edit_wizard_finish()
- stylizer_ui::edit_wizard_finish in stylizer/
plugins/ export_ui/ stylizer_ui.class.php - Wizard 'cancel' callback when using a wizard to edit an item.
1 method overrides ctools_export_ui::edit_wizard_finish()
- stylizer_ui::edit_wizard_finish in stylizer/
plugins/ export_ui/ stylizer_ui.class.php - Wizard 'cancel' callback when using a wizard to edit an item.
File
-
plugins/
export_ui/ ctools_export_ui.class.php, line 958
Class
- ctools_export_ui
- Base class for export UI.
Code
public function edit_wizard_finish(&$form_state) {
$form_state['complete'] = TRUE;
// If we are importing, and overwrite was selected, delete the original so
// that this one writes properly.
if ($form_state['form type'] == 'import' && !empty($form_state['item']->export_ui_allow_overwrite)) {
ctools_export_crud_delete($this->plugin['schema'], $form_state['item']);
}
$this->edit_cache_clear($form_state['item'], $form_state['form type']);
}