From 03d3b5c36bbca2a0afcb9f62e8208fb946a21727 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 22 Feb 2011 19:46:09 +0000 Subject: [PATCH] Add common function to get list of supported extensions --- etemplate/inc/class.bo_merge.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index 636ee893ef..9ba22f2ae5 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -773,4 +773,11 @@ abstract class bo_merge } return $list; } + + /** + * Get a list of supported extentions + */ + public static function get_file_extensions() { + return array('txt', 'rtf', 'odt', 'ods', 'docx', 'xml'); + } }