Back to PhocacartOrderStatus class

Method getChangeUserGroupSelectBox

public static
getChangeUserGroupSelectBox
(mixed $value)

Method getChangeUserGroupSelectBox - Source code

public static function getChangeUserGroupSelectBox($value)
{
    // see: administrator/components/com_phocacart/models/forms/phocacartstatus.xml
    $data = array('0' => Text::_('COM_PHOCACART_USER_GROUP_UNCHANGED'), '1' => Text::_('COM_PHOCACART_USER_GROUP_CHANGED'));
    if ($value == '') {
        $value = 0;
    }
    return HTMLHelper::_('select.genericlist', $data, 'jform[change_user_group]', 'class="form-select"', 'value', 'text', $value, $data[$value]);
}