You are here

function commerce_discount_overview_form in Commerce Discount 7

Builds the entity overview form.

1 string reference to 'commerce_discount_overview_form'
CommerceDiscountUIController::hook_menu in includes/commerce_discount.admin.inc
Overridden EntityDefaultUIController::hook_menu().

File

includes/commerce_discount.admin.inc, line 113
Commerce discount editing UI.

Code

function commerce_discount_overview_form() {
  $view = views_get_view('commerce_discount_overview');
  $view->override_url = $_GET['q'];
  $form['view'] = array(
    '#markup' => $view
      ->preview(),
  );
  $form['#attached']['css'][] = drupal_get_path('module', 'commerce_discount') . '/css/commerce_discount.css';
  return $form;
}