diff --git a/libraries/import/csv.php b/libraries/import/csv.php
index 80a3d79f0..a774371a8 100644
--- a/libraries/import/csv.php
+++ b/libraries/import/csv.php
@@ -22,6 +22,7 @@ if (isset($plugin_list)) {
'text' => __('CSV'),
'extension' => 'csv',
'options' => array(
+ array('type' => 'begin_group', 'name' => 'general_opts'),
array('type' => 'bool', 'name' => 'replace', 'text' => __('Replace table data with file')),
array('type' => 'bool', 'name' => 'ignore', 'text' => __('Ignore duplicate rows')),
array('type' => 'text', 'name' => 'terminated', 'text' => __('Columns terminated with:'), 'size' => 2, 'len' => 2),
@@ -39,6 +40,7 @@ if (isset($plugin_list)) {
$plugin_list['csv']['options'][] =
array('type' => 'text', 'name' => 'columns', 'text' => __('Column names'));
}
+ $plugin_list['csv']['options'][] = array('type' => 'end_group');
/* We do not define function when plugin is just queried for information above */
return;
diff --git a/libraries/import/docsql.php b/libraries/import/docsql.php
index fa458ac30..35119b457 100644
--- a/libraries/import/docsql.php
+++ b/libraries/import/docsql.php
@@ -29,7 +29,9 @@ if (isset($plugin_list)) {
'text' => __('DocSQL'), // text to be displayed as choice
'extension' => '', // extension this plugin can handle
'options' => array( // array of options for your plugin (optional)
+ array('type' => 'begin_group', 'name' => 'general_opts'),
array('type' => 'text', 'name' => 'table', 'text' => __('Table name')),
+ array('type' => 'end_group')
),
'options_text' => __('Options'), // text to describe plugin options (must be set if options are used)
);
diff --git a/libraries/import/ldi.php b/libraries/import/ldi.php
index 2c8702af3..cf9502715 100644
--- a/libraries/import/ldi.php
+++ b/libraries/import/ldi.php
@@ -35,6 +35,7 @@ if (isset($plugin_list)) {
'text' => __('CSV using LOAD DATA'),
'extension' => 'ldi', // This is nonsense, however we want to default to our parser for csv
'options' => array(
+ array('type' => 'begin_group', 'name' => 'general_opts'),
array('type' => 'bool', 'name' => 'replace', 'text' => __('Replace table data with file')),
array('type' => 'bool', 'name' => 'ignore', 'text' => __('Ignore duplicate rows')),
array('type' => 'text', 'name' => 'terminated', 'text' => __('Columns terminated by'), 'size' => 2, 'len' => 2),
@@ -43,6 +44,7 @@ if (isset($plugin_list)) {
array('type' => 'text', 'name' => 'new_line', 'text' => __('Lines terminated by'), 'size' => 2),
array('type' => 'text', 'name' => 'columns', 'text' => __('Column names')),
array('type' => 'bool', 'name' => 'local_option', 'text' => __('Use LOCAL keyword')),
+ array('type' => 'end_group')
),
'options_text' => __('Options'),
);
diff --git a/libraries/import/ods.php b/libraries/import/ods.php
index 0a1393bb9..7df7edcbf 100644
--- a/libraries/import/ods.php
+++ b/libraries/import/ods.php
@@ -22,10 +22,12 @@ if (isset($plugin_list)) {
'text' => __('Open Document Spreadsheet'),
'extension' => 'ods',
'options' => array(
+ array('type' => 'begin_group', 'name' => 'general_opts'),
array('type' => 'bool', 'name' => 'col_names', 'text' => __('The first line of the file contains the table column names (if this is unchecked, the first line will become part of the data)')),
array('type' => 'bool', 'name' => 'empty_rows', 'text' => __('Do not import empty rows')),
array('type' => 'bool', 'name' => 'recognize_percentages', 'text' => __('Import percentages as proper decimals (ex. 12.00% to .12)')),
array('type' => 'bool', 'name' => 'recognize_currency', 'text' => __('Import currencies (ex. $5.00 to 5.00)')),
+ array('type' => 'end_group')
),
'options_text' => __('Options'),
);
diff --git a/libraries/import/sql.php b/libraries/import/sql.php
index eafe2c0c6..a73d8be20 100644
--- a/libraries/import/sql.php
+++ b/libraries/import/sql.php
@@ -26,6 +26,7 @@ if (isset($plugin_list)) {
$values[$val] = $val;
}
$plugin_list['sql']['options'] = array(
+ array('type' => 'begin_group', 'name' => 'general_opts'),
array(
'type' => 'select',
'name' => 'compatibility',
@@ -47,6 +48,7 @@ if (isset($plugin_list)) {
),
),
+ array('type' => 'end_group'),
);
}
diff --git a/libraries/import/xls.php b/libraries/import/xls.php
index 6b50cf7b0..503f7c900 100644
--- a/libraries/import/xls.php
+++ b/libraries/import/xls.php
@@ -21,7 +21,9 @@ if (isset($plugin_list)) {
'text' => __('Excel 97-2003 XLS Workbook'),
'extension' => 'xls',
'options' => array(
+ array('type' => 'begin_group', 'name' => 'general_opts'),
array('type' => 'bool', 'name' => 'col_names', 'text' => __('The first line of the file contains the table column names (if this is unchecked, the first line will become part of the data)')),
+ array('type' => 'end_group')
),
'options_text' => __('Options'),
);
diff --git a/libraries/import/xlsx.php b/libraries/import/xlsx.php
index 309f8f9ad..82cd0917a 100644
--- a/libraries/import/xlsx.php
+++ b/libraries/import/xlsx.php
@@ -21,7 +21,9 @@ if (isset($plugin_list)) {
'text' => __('Excel 2007 XLSX Workbook'),
'extension' => 'xlsx',
'options' => array(
+ array('type' => 'begin_group', 'name' => 'general_opts'),
array('type' => 'bool', 'name' => 'col_names', 'text' => __('The first line of the file contains the table column names (if this is unchecked, the first line will become part of the data)')),
+ array('type' => 'end_group')
),
'options_text' => __('Options'),
);