public function getWidgetTypes()
    {
        $types = &gplcart_static('field.widget.types');

        if (isset($types)) {
            return $types;
        }

        $types = array(
            'button' => $this->translation->text('Button'),
            'radio' => $this->translation->text('Radio buttons'),
            'select' => $this->translation->text('Dropdown list')
        );

        $this->hook->attach('field.widget.types', $types, $this);
        return $types;
    }
public function getWidgetTypes()
    {
        $types = &gplcart_static('field.widget.types');

        if (isset($types)) {
            return $types;
        }

        $types = array(
            'button' => $this->translation->text('Button'),
            'radio' => $this->translation->text('Radio buttons'),
            'select' => $this->translation->text('Dropdown list')
        );

        $this->hook->attach('field.widget.types', $types, $this);
        return $types;
    }
public function getWidgetTypes ( ) { $ types = & gplcart_static ( 'field.widget.types' ) ; if ( isset ( $ types ) ) { return $ types ; } $ types = array ( 'button' => $ this -> translation -> text ( 'Button' ) , 'radio' => $ this -> translation -> text ( 'Radio buttons' ) , 'select' => $ this -> translation -> text ( 'Dropdown list' ) ) ; $ this -> hook -> attach ( 'field.widget.types' , $ types , $ this ) ; return $ types ; }
Returns an array of widget types
@return array
Returns an array of widget types