function ctools_export_ui_edit_item_wizard_form in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 plugins/export_ui/ctools_export_ui.class.php \ctools_export_ui_edit_item_wizard_form()
Form callback to edit an exportable item using the wizard
This simply loads the object defined in the plugin and hands it off.
1 string reference to 'ctools_export_ui_edit_item_wizard_form'
- ctools_export_ui::get_wizard_info in plugins/
export_ui/ ctools_export_ui.class.php - Get the form info for the wizard.
File
- plugins/
export_ui/ ctools_export_ui.class.php, line 1399
Code
function ctools_export_ui_edit_item_wizard_form(&$form, &$form_state) {
$method = 'edit_form_' . $form_state['step'];
if (!method_exists($form_state['object'], $method)) {
$method = 'edit_form';
}
$form_state['object']
->{$method}($form, $form_state);
return $form;
}