summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-07-29 17:28:23 +0000
committerDries Buytaert <dries@buytaert.net>2007-07-29 17:28:23 +0000
commit80ff5109a774a69473e2a9d74a49b8dc4da03e8f (patch)
tree62e999724a21b492ad7f722685d44cc697b88a1b /modules/system/system.module
parenta78ac962952ec63080789422751038275c3c62fb (diff)
downloadbrdo-80ff5109a774a69473e2a9d74a49b8dc4da03e8f.tar.gz
brdo-80ff5109a774a69473e2a9d74a49b8dc4da03e8f.tar.bz2
- 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. ;)
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module3
1 files changed, 2 insertions, 1 deletions
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
+}