public function RunModule() { $this->ShowData(); // show conclicts between static block ids and custom ids $rows = $this->GetDataset()->fetchAll(); foreach ($rows as $row) { if (uWidgets::StaticWidgetExists($row['block_id'])) { echo "Conflict: Widget ({$row['block_id']}) already exists as a static Widget. Please rename it."; } } }
public static function Initialise() { uEvents::AddCallback('BeforeRunModule', 'uCMS_View::assertContent', null, 9999); uEvents::AddCallback('AfterRunModule', 'uCMS_View::InitSitemap'); uEvents::AddCallback('ProcessDomDocument', 'uCMS_View::ProcessDomDocument'); uWidgets::AddStaticWidget('page_updated', 'uCMS_View::last_updated'); uSearch::AddSearchRecipient(__CLASS__, array('title', 'content_published'), 'title', 'content_published'); }