add('select', 'slot_label_id', ts('Conference Slot'), array( '' => ts('- select -'), ) + $slots, FALSE ); $this->addEntityRef('parent_event_id', ts('Parent Event'), array( 'entity' => 'Event', 'placeholder' => ts('- any -'), 'select' => array('minimumInputLength' => 0), ) ); parent::buildQuickForm(); } /** * Post process form. */ public function postProcess() { $params = $this->exportValues(); $params['id'] = $this->_id; CRM_Event_BAO_Event::add($params); parent::endPostProcess(); } /** * Return a descriptive name for the page, used in wizard header. * * @return string */ public function getTitle() { return ts('Conference Slots'); } }