Add custom fields to available fields and default export definition

This commit is contained in:
Nathan Gray 2011-11-14 17:03:11 +00:00
parent fe7dddcc0d
commit e88c042901
2 changed files with 9 additions and 1 deletions

View File

@ -28,6 +28,13 @@ class calendar_wizard_import_csv extends importexport_wizard_basic_import_csv
$tracking = new calendar_tracking();
$this->mapping_fields = array('id' => 'Calendar ID') + $tracking->field2label;
// List each custom field
unset($this->mapping_fields['customfields']);
$custom = config::get_customfields('calendar');
foreach($custom as $name => $data) {
$this->mapping_fields['#'.$name] = $data['label'];
}
// Actions
$this->actions = array(
'none' => lang('none'),

View File

@ -34,13 +34,14 @@
<entry type="string" name="end">end</entry>
<entry type="string" name="participants">Participants: User, Status, Role</entry>
<entry type="string" name="participants-c">Participants: User, Status, Quantity, Role</entry>
<entry type="string" name="all_custom_fields">calendar</entry>
</entry>
<entry type="string" name="delimiter">;</entry>
<entry type="string" name="charset">user</entry>
<entry type="string" name="begin_with_fieldnames">label</entry>
<entry type="string" name="convert">1</entry>
</entry>
<entry type="string" name="modified">2011-05-24 10:00:00</entry>
<entry type="string" name="modified">2011-11-10 10:00:00</entry>
</entry>
<entry type="array" name="import-calendar-ical">
<entry type="string" name="name">import-calendar-ical</entry>