From 80ff5109a774a69473e2a9d74a49b8dc4da03e8f Mon Sep 17 00:00:00 2001
From: Dries Buytaert
'. t('This action cannot be undone.') .'
'; + $caption .= ''. t('This action cannot be undone.') .'
'; return confirm_form($form, t('Are you sure you want to delete the custom menu %title?', array('%title' => $menu['title'])), 'admin/build/menu-customize/'. $menu['menu_name'], $caption, t('Delete')); } diff --git a/modules/system/system.module b/modules/system/system.module index 0ebaaea51..c856ea930 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -105,6 +105,7 @@ function system_elements() { // Inputs $type['submit'] = array('#input' => TRUE, '#name' => 'op', '#button_type' => 'submit', '#executes_submit_callback' => TRUE, '#ahah_event' => 'submit', '#process' => array('form_expand_ahah')); $type['button'] = array('#input' => TRUE, '#name' => 'op', '#button_type' => 'submit', '#executes_submit_callback' => FALSE, '#ahah_event' => 'submit', '#process' => array('form_expand_ahah')); + $type['image_button'] = array('#input' => TRUE, '#button_type' => 'submit','#executes_submit_callback' => TRUE, '#ahah_event' => 'submit', '#process' => array('form_expand_ahah'), '#has_garbage_value' => TRUE, '#image' => NULL); $type['textfield'] = array('#input' => TRUE, '#size' => 60, '#maxlength' => 128, '#autocomplete_path' => FALSE); $type['password'] = array('#input' => TRUE, '#size' => 60, '#maxlength' => 128); $type['password_confirm'] = array('#input' => TRUE, '#process' => array('expand_password_confirm')); @@ -3126,4 +3127,4 @@ function system_goto_action_submit($form, $form_state) { function system_goto_action($object, $context) { drupal_goto($context['url']); -} \ No newline at end of file +} -- cgit v1.2.3