You are here

protected function UCXF_Pane::order_edit_theme in Extra Fields Checkout Pane 6.2

Theme the editable form @access protected

Return value

string

1 method overrides UCXF_Pane::order_edit_theme()
UCXF_AddressPane::order_edit_theme in class/UCXF_AddressPane.class.php
Theme the editable form @access protected

File

class/UCXF_Pane.class.php, line 338
Contains the UCXF_Pane class.

Class

UCXF_Pane
Base class for checkout panes and order panes implemented by Extra Fields Pane.

Code

protected function order_edit_theme() {
  $fields = $this
    ->loadFields();

  // Remove pane_fields that are not enabled
  foreach ($fields as $fieldname => $field) {
    if (!$field->enabled && isset($this->order['ucxf_' . $this->pane_id][$fieldname])) {
      unset($this->order['ucxf_' . $this->pane_id][$fieldname]);
    }
  }
  $output = theme('uc_extra_fields_pane_order_pane', $this->order['ucxf_' . $this->pane_id]);
  return $output;
}