get('enable_cart'); $eventSummary['tab'] = CRM_Event_Page_ManageEvent::tabs($enableCart); $actionColumn = FALSE; if (!empty($eventSummary) && isset($eventSummary['events']) && is_array($eventSummary['events']) ) { foreach ($eventSummary['events'] as $e) { if (isset($e['isMap']) || isset($e['configure'])) { $actionColumn = TRUE; break; } } } $this->assign('actionColumn', $actionColumn); $this->assign('eventSummary', $eventSummary); } /** * the main function that is called when the page loads, * it decides the which action has to be taken for the page. * * @return null */ public function run() { $this->preProcess(); $controller = new CRM_Core_Controller_Simple('CRM_Event_Form_Search', ts('events'), NULL); $controller->setEmbedded(TRUE); $controller->reset(); $controller->set('limit', 10); $controller->set('force', 1); $controller->set('context', 'dashboard'); $controller->process(); $controller->run(); return parent::run(); } }