function wsclient_ui_operation_delete_submit in Web service client 7
Submit callback of operation delete form.
File
- wsclient_ui/
wsclient_ui.inc, line 1154 - WSClient UI - implements service description management and configuration screens.
Code
function wsclient_ui_operation_delete_submit($form, &$form_state) {
$service = $form_state['service'];
$operation = $form_state['operation'];
unset($service->operations[$operation['name']]);
$service
->save();
drupal_set_message(t('Deleted operation %operation.', array(
'%operation' => $operation['label'],
)));
$form_state['redirect'] = WSCLIENT_UI_PATH . '/manage/' . $service->name;
}