original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Adds an item label to the question name
  @param stdClass $item
  @param HTML_QuickForm_element $element
docstring_tokens: Adds an item label to the question name