searchForm->populateFromArray($this->storeQuery->query); } else { $this->searchForm->populateFromRequest(); } $where_clauses = $this->searchForm->generateSearchWhere(true, $this->seed->module_dir); $where_clauses[] = "campaigns.campaign_type in ('NewsLetter')"; if (count($where_clauses) > 0 )$this->where = '('. implode(' ) AND ( ', $where_clauses) . ')'; $GLOBALS['log']->info("List View Where Clause: $this->where"); echo $this->searchForm->display($this->headers); } /** * @see SugarView::preDisplay() */ public function preDisplay() { global $mod_strings; $mod_strings['LBL_MODULE_TITLE'] = $mod_strings['LBL_NEWSLETTER_TITLE']; $mod_strings['LBL_LIST_FORM_TITLE'] = $mod_strings['LBL_NEWSLETTER_LIST_FORM_TITLE']; parent::preDisplay(); } }