You are here

function commerce_backoffice_product_handler_field_product_quick_edit_form::render in Commerce Backoffice 7

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

includes/views/handlers/commerce_backoffice_product_handler_field_product_quick_edit_form.inc, line 10

Class

commerce_backoffice_product_handler_field_product_quick_edit_form
Display a form for editing the price and status of a variation.

Code

function render($values) {

  // Get the entity matching this row.
  $results = array(
    $values,
  );
  $entities = $this->query
    ->get_result_entities($results);
  $entity = reset($entities[1]);
  $form = drupal_get_form('commerce_backoffice_product_quick_edit_form', $entity);
  return drupal_render($form);
}