Backport 32515 - Add mimetype to export plugins

This commit is contained in:
Nathan Gray 2010-10-12 22:53:59 +00:00
parent 4d22beeb64
commit 7d0c490079
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