protected function setTitleEditCollectionItem()
    {
        $vars = array('%name' => $this->data_collection['title']);

        if (empty($this->data_collection_item['collection_item_id'])) {
            $text = $this->text('Add item to %name', $vars);
        } else {
            $text = $this->text('Edit item of %name', $vars);
        }

        $this->setTitle($text);
    }
protected function setTitleEditCollectionItem()
    {
        $vars = array('%name' => $this->data_collection['title']);

        if (empty($this->data_collection_item['collection_item_id'])) {
            $text = $this->text('Add item to %name', $vars);
        } else {
            $text = $this->text('Edit item of %name', $vars);
        }

        $this->setTitle($text);
    }
protected function setTitleEditCollectionItem ( ) { $ vars = array ( '%name' => $ this -> data_collection [ 'title' ] ) ; if ( empty ( $ this -> data_collection_item [ 'collection_item_id' ] ) ) { $ text = $ this -> text ( 'Add item to %name' , $ vars ) ; } else { $ text = $ this -> text ( 'Edit item of %name' , $ vars ) ; } $ this -> setTitle ( $ text ) ; }
Sets title on the edit collection item page
Sets title on the edit collection item page