function commerce_backoffice_order_status_form in Commerce Backoffice 7
Form callback: Returns the form for modifying the status column.
1 string reference to 'commerce_backoffice_order_status_form'
File
- ./
commerce_backoffice_order.module, line 155
Code
function commerce_backoffice_order_status_form($form, &$form_state, $order) {
$form_state['order'] = $order;
if (!empty($form_state['order_saved'])) {
// Show the status message on top of the form.
drupal_set_message(t('The order status has been updated.'));
$form['status_message'] = array(
'#type' => 'markup',
'#markup' => theme('status_messages'),
);
// Send the signal to reload the parent row.
$form['#megarow_refresh_parent'] = TRUE;
}
$form['status'] = array(
'#type' => 'select',
'#title' => t('Status'),
'#title_display' => 'invisible',
'#options' => commerce_order_status_options_list(),
'#default_value' => $order->status,
);
$form['save'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
return $form;
}