Add mimetype to export plugins

This commit is contained in:
Nathan Gray 2010-10-12 22:52:32 +00:00
parent e646cc4f8e
commit a104512988
2 changed files with 8 additions and 0 deletions

View File

@ -71,6 +71,10 @@ class timesheet_export_csv implements importexport_iface_export_plugin {
return 'csv';
}
public static function get_mimetype() {
return 'text/csv';
}
/**
* return html for options.
* this way the plugin has all opportunities for options tab

View File

@ -178,6 +178,10 @@ class timesheet_export_openoffice implements importexport_iface_export_plugin {
return 'ods';
}
public static function get_mimetype() {
return 'application/vnd.oasis.opendocument.spreadsheet';
}
/**
* return html for options.
* this way the plugin has all opertunities for options tab