You are here

function uc_cart_cart_panes_form in Ubercart 5

Same name and namespace in other branches
  1. 6.2 uc_cart/uc_cart.admin.inc \uc_cart_cart_panes_form()
1 string reference to 'uc_cart_cart_panes_form'
uc_cart_menu in uc_cart/uc_cart.module
Implementation of hook_menu().

File

uc_cart/uc_cart.module, line 809

Code

function uc_cart_cart_panes_form() {
  $panes = uc_cart_cart_pane_list(NULL);
  $form['panes'] = array(
    '#theme' => 'uc_pane_sort_table',
    '#pane_prefix' => 'uc_cap',
  );
  foreach ($panes as $pane) {
    $form['panes'][$pane['id']]['uc_cap_' . $pane['id'] . '_enabled'] = array(
      '#type' => 'checkbox',
      '#default_value' => $pane['enabled'],
    );
    $form['panes'][$pane['id']]['title'] = array(
      '#value' => $pane['title'],
    );
    $form['panes'][$pane['id']]['uc_cap_' . $pane['id'] . '_weight'] = array(
      '#type' => 'weight',
      '#delta' => 10,
      '#default_value' => $pane['weight'],
    );
  }
  return system_settings_form($form);
}