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/forum/forum-submitted.tpl.php | 6 +++--- modules/forum/forums.tpl.php | 2 +- modules/menu/menu.module | 2 +- modules/system/system.module | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/forum/forum-submitted.tpl.php b/modules/forum/forum-submitted.tpl.php index 79580c3aa..747cf8375 100644 --- a/modules/forum/forum-submitted.tpl.php +++ b/modules/forum/forum-submitted.tpl.php @@ -1,10 +1,10 @@ - by !author', array( - '@time' => $time, + '@time' => $time, '!author' => $author, )); ?> diff --git a/modules/forum/forums.tpl.php b/modules/forum/forums.tpl.php index 1b8264a72..0b8e1dfb6 100644 --- a/modules/forum/forums.tpl.php +++ b/modules/forum/forums.tpl.php @@ -1,4 +1,4 @@ -'. format_plural($num_links, 'Warning: There is currently 1 menu item in %title. It will be deleted (system-defined items will be reset).', 'Warning: There are currently @count menu items in %title. They will be deleted (system-defined items will be reset).', array('%title' => $menu['title'])) .'

'; } - $caption .= '

'. 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