protected function add_item_label($item, $element) {
        if (strlen($item->label) && ($this->mode == self::MODE_EDIT || $this->mode == self::MODE_VIEW_TEMPLATE)) {
            $name = $element->getLabel();
            $name = '('.format_string($item->label).') '.$name;
            $element->setLabel($name);
        }
    }
protected function add_item_label($item, $element) {
        if (strlen($item->label) && ($this->mode == self::MODE_EDIT || $this->mode == self::MODE_VIEW_TEMPLATE)) {
            $name = $element->getLabel();
            $name = '('.format_string($item->label).') '.$name;
            $element->setLabel($name);
        }
    }
protected function add_item_label ( $ item , $ element ) { if ( strlen ( $ item -> label ) && ( $ this -> mode == self :: MODE_EDIT || $ this -> mode == self :: MODE_VIEW_TEMPLATE ) ) { $ name = $ element -> getLabel ( ) ; $ name = '(' . format_string ( $ item -> label ) . ') ' . $ name ; $ element -> setLabel ( $ name ) ; } }
Adds an item label to the question name
@param stdClass $item
@param HTML_QuickForm_element $element
Adds an item label to the question name