Definition

theme_auction_bid_form($form)
ecommerce-5--4/contrib/auction/auction.module, line 679

Description

Formats the HTML elements that you see when you _Bid_ on an auction. You can override this function. Refer to Theming at http://drupal.org/node/55126. Called indirectly by theme_product_auction_view()

Parameters

$form A formapi array which contains the form elements.

Related topics

Namesort iconDescription
Themeable functionsFunctions that display HTML, and which can be customized by themes.

Code

<?php
function theme_auction_bid_form($form) {
  drupal_set_title(t('Place a Bid'));

  $header = array();
  $rows[] = array(t('Current bid:'), format_currency($form['bid']['#current_bid']));
  $rows[] = array(t('Your bid:'), drupal_render($form['bid']));
  $rows[] = array('&nbsp;', drupal_render($form['submit']));

  $output = theme('table', $header, $rows);
  $output .= drupal_render($form);

  return $output;
}
?>