function ctools_export_ui_edit_item_form_delete

Submit handler to delete for ctools_export_ui_edit_item_form

@todo Put this on a callback in the object.

1 string reference to 'ctools_export_ui_edit_item_form_delete'
ctools_export_ui::edit_form in plugins/export_ui/ctools_export_ui.class.php
Provide the actual editing form.

File

plugins/export_ui/ctools_export_ui.class.php, line 1410

Code

function ctools_export_ui_edit_item_form_delete(&$form, &$form_state) {
    _ctools_export_ui_add_form_files($form, $form_state);
    $export_key = $form_state['plugin']['export']['key'];
    $path = $form_state['item']->export_type & EXPORT_IN_CODE ? 'revert' : 'delete';
    drupal_goto(ctools_export_ui_plugin_menu_path($form_state['plugin'], $path, $form_state['item']->{$export_key}), array(
        'cancel_path' => $_GET['q'],
    ));
}