auction_ec_settings()
ecommerce-5--4/contrib/auction/auction.module, line 191
Implementation of e-Commerce hook_ec_settings().
<?php
function auction_ec_settings() {
$form['auction_days'] = array(
'#type' => 'textfield',
'#title' => t('Default Auction Length'),
'#description' => t('When a new auction is created, the expiry date will default to this number of days into the future.'),
'#default_value' => variable_get('auction_days', 1),
'#size' => 10,
'#maxlength' => 2,
'#required' => true,
);
$form['auction_fixed'] = array(
'#type' => 'select',
'#title' => t('Fixed expire date'),
'#description' => t('If yes, users wont be able to change the expiration date'),
'#default_value' => variable_get('auction_fixed', true),
'#options' => array('No', 'Yes'),
'#required' => true,
);
return system_settings_form($form);
}
?>