You are here

function uc_extra_fields_pane_field_value_type_after_build in Extra Fields Checkout Pane 7

Same name and namespace in other branches
  1. 6.2 uc_extra_fields_pane.admin.inc \uc_extra_fields_pane_field_value_type_after_build()

Fixes the option list for the radios field 'value_type' after the form is build.

Parameters

array $radio_field:

Return value

array

1 string reference to 'uc_extra_fields_pane_field_value_type_after_build'
UCXF_Field::edit_form in class/UCXF_Field.class.php
Get the edit form for the field. @access public

File

./uc_extra_fields_pane.admin.inc, line 78
Admin functions for adding, editing and deleting fields

Code

function uc_extra_fields_pane_field_value_type_after_build(&$radios_field) {

  // Rearrange the options
  foreach (element_children($radios_field) as $option_id) {
    $option = $radios_field[$option_id];
    $radios_field[$option_id]['#description'] = $option['#title']['#description'];
    $radios_field[$option_id]['#title'] = $option['#title']['#title'];
  }
  return $radios_field;
}