From 80ff5109a774a69473e2a9d74a49b8dc4da03e8f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 29 Jul 2007 17:28:23 +0000 Subject: - Patch #162708 by Eaton and Earl: add support for image buttons to FAPI3. This is a small form API extension (doesn't break existing code) that facilitates the Drupal 6 upgrade of the Views module. A good example of why it can be beneficial to start upgrading your modules early on in the code freeze. ;) --- modules/system/system.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/system/system.module') 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