You are here

function commerce_backoffice_order_form_alter in Commerce Backoffice 7

Implements hook_form_views_form_alter().

File

./commerce_backoffice_order.module, line 62

Code

function commerce_backoffice_order_form_alter(&$form, &$form_state, $form_id) {

  // Alter the Exposed Filters for orders page
  if (isset($form['submit']['#id']) && $form['submit']['#id'] == 'edit-submit-commerce-backoffice-orders') {
    $form['status']['#attributes'] = array(
      'data-placeholder' => array(
        t('All statuses'),
      ),
    );
    $form['combine']['#attributes'] = array(
      'placeholder' => array(
        t('Search by username, email, order ID'),
      ),
    );
  }
}