public function edit($content)
    {
        $content = $this->_defaultData($content);
        $link = str_replace('internal://', '', $content['link'], $count);
        $content['link'] = ($count > 0) ? '' : $content['link'];
        $this->_editViewData['targetOptions'] = [0 => 'Target: Same Tab', '_blank' => 'Target: New Tab'];
        $this->_editViewData['selectedPage'] = ($count > 0) ? $link : 0;
        $this->_editViewData['pageList'] = [0 => 'Custom Link: '] + Page::get_page_list();
        return parent::edit($content);
    }
public function edit($content)
    {
        $content = $this->_defaultData($content);
        $link = str_replace('internal://', '', $content['link'], $count);
        $content['link'] = ($count > 0) ? '' : $content['link'];
        $this->_editViewData['targetOptions'] = [0 => 'Target: Same Tab', '_blank' => 'Target: New Tab'];
        $this->_editViewData['selectedPage'] = ($count > 0) ? $link : 0;
        $this->_editViewData['pageList'] = [0 => 'Custom Link: '] + Page::get_page_list();
        return parent::edit($content);
    }
public function edit ( $ content ) { $ content = $ this -> _defaultData ( $ content ) ; $ link = str_replace ( 'internal://' , '' , $ content [ 'link' ] , $ count ) ; $ content [ 'link' ] = ( $ count > 0 ) ? '' : $ content [ 'link' ] ; $ this -> _editViewData [ 'targetOptions' ] = [ 0 => 'Target: Same Tab' , '_blank' => 'Target: New Tab' ] ; $ this -> _editViewData [ 'selectedPage' ] = ( $ count > 0 ) ? $ link : 0 ; $ this -> _editViewData [ 'pageList' ] = [ 0 => 'Custom Link: ' ] + Page :: get_page_list ( ) ; return parent :: edit ( $ content ) ; }
Edit link settings
@param string $content
@return string
Edit link settings