steps += array( 'wizard_step50' => lang('Manage mapping'), ); // Field mapping $tracking = new calendar_tracking(); $this->mapping_fields = array('id' => 'Calendar ID') + $tracking->field2label; // Actions $this->actions = array( 'none' => lang('none'), 'update' => lang('update'), 'insert' => lang('insert'), ); // Conditions $this->conditions = array( 'exists' => lang('exists'), ); } function wizard_step50(&$content, &$sel_options, &$readonlys, &$preserv) { $result = parent::wizard_step50($content, $sel_options, $readonlys, $preserv); $content['msg'] .= "\n*" ; return $result; } // Conditions function wizard_step55(&$content, &$sel_options, &$readonlys, &$preserv) { $result = parent::wizard_step55($content, $sel_options, $readonlys, $preserv); // Search can only deal with ID $sel_options['string'] = array( 'id' => 'Calendar ID' ); return $result; } }