From 1ed8542945d8570868cee8533930946c809b8c02 Mon Sep 17 00:00:00 2001 From: lorilee Date: Wed, 9 Jun 2010 20:27:58 -0400 Subject: [PATCH] Updated hidden structure/data field name, Modified label text, Modified formatting --- libraries/export/htmlword.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libraries/export/htmlword.php b/libraries/export/htmlword.php index 5f36dc95a..7b8595bd6 100644 --- a/libraries/export/htmlword.php +++ b/libraries/export/htmlword.php @@ -20,11 +20,15 @@ if (isset($plugin_list)) { 'mime_type' => 'application/vnd.ms-word', 'force_file' => true, 'options' => array( - array('type' => 'bool', 'name' => 'structure', 'text' => __('Structure'), 'force' => 'data'), - array('type' => 'bgroup', 'name' => 'data', 'text' => __('Data'), 'force' => 'structure'), - array('type' => 'text', 'name' => 'null', 'text' => __('Replace NULL by')), + /* what to dump (structure/data/both) */ + array('type' => 'begin_subgroup', 'subgroup_header' => array('type' => 'message_only', 'text' => __('Dump table'))), + array('type' => 'radio', 'name' => 'structure_or_data', 'values' => array('structure' => __('structure'), 'data' => __('data'), 'structure_and_data' => __('structure and data'))), + array('type' => 'end_subgroup'), + /* data options */ + array('type' => 'begin_group', 'name' => 'data', 'text' => __('Data dump options'), 'force' => 'structure'), + array('type' => 'text', 'name' => 'null', 'text' => __('Replace NULL with:')), array('type' => 'bool', 'name' => 'columns', 'text' => __('Put columns names in the first row')), - array('type' => 'egroup'), + array('type' => 'end_group'), ), 'options_text' => __('Options'), );