function commerce_checkout_form_commerce_order_settings_form_alter in Commerce Core 7
Implements hook_form_FORM_ID_alter().
Adds a checkbox to the order settings form to enable the local action on order edit forms to simulate checkout completion.
File
- modules/
checkout/ commerce_checkout.module, line 296 - Enable checkout as a multi-step form with customizable pages and a simple checkout pane API.
Code
function commerce_checkout_form_commerce_order_settings_form_alter(&$form, &$form_state) {
$form['commerce_order_simulate_checkout_link'] = array(
'#type' => 'checkbox',
'#title' => t('Enable the local action link on order edit forms to simulate checkout completion.'),
'#default_value' => variable_get('commerce_order_simulate_checkout_link', TRUE),
'#weight' => 20,
);
}