summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--context_ui/context_ui_admin.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/context_ui/context_ui_admin.inc b/context_ui/context_ui_admin.inc
index 55a4004..187d076 100644
--- a/context_ui/context_ui_admin.inc
+++ b/context_ui/context_ui_admin.inc
@@ -772,13 +772,14 @@ function context_ui_form_process($form) {
* Submit handler for main context_ui form.
*/
function context_ui_form_submit($form, &$form_state) {
- switch (t($form_state['values']['op'])) {
+
+ switch ($form_state['clicked_button']['#id']) {
// Send user to delete confirmation page
- case 'Delete':
+ case 'edit-delete':
$form_state['redirect'] = 'admin/build/context/delete/'. $form_state['values']['cid'];
return;
// Process form values and save and/or update the context in the db
- case 'Save':
+ case 'edit-submit':
$context = context_ui_form_process($form_state['values']);
if (!$context->cid) {
$result = context_ui_context('insert', $context);