assign('backUrl', $backUrl); $this->assign('backUrlTitle', $backUrlTitle); CRM_Utils_System::setTitle($selector->getTitle()); $this->assign('title', $selector->getTitle()); $this->assign('mailing_id', $mailing_id); $sortID = NULL; if ($this->get(CRM_Utils_Sort::SORT_ID)) { $sortID = CRM_Utils_Sort::sortIDValue($this->get(CRM_Utils_Sort::SORT_ID), $this->get(CRM_Utils_Sort::SORT_DIRECTION) ); } $controller = new CRM_Core_Selector_Controller( $selector, $this->get(CRM_Utils_Pager::PAGE_ID), $sortID, CRM_Core_Action::VIEW, $this, CRM_Core_Selector_Controller::TEMPLATE ); $controller->setEmbedded(TRUE); $controller->run(); return parent::run(); } }