summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Barth2010-03-24 01:03:48 (GMT)
committer Alex Barth2010-03-24 01:03:48 (GMT)
commit5ae010506df63d4e31cd717c1af0ead58261ed3a (patch)
tree0bea1d482c297b98b2249625479f144f167722c0
parentb202ecd8dedb4200a16d3e056fe0d47f1745fe37 (diff)
Don't prefix tables.
-rw-r--r--data_ui/data_ui.admin.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/data_ui/data_ui.admin.inc b/data_ui/data_ui.admin.inc
index 7e31d84..1b8a1a7 100644
--- a/data_ui/data_ui.admin.inc
+++ b/data_ui/data_ui.admin.inc
@@ -329,7 +329,7 @@ function data_ui_create_form(&$form_state) {
* Validate handler for create table form.
*/
function data_ui_create_form_validate($form, &$form_state) {
- if (data_get_table(data_name($form_state['values']['name']))) {
+ if (data_get_table(trim($form_state['storage']['name']))) {
form_set_error('name', t('Name is already taken.'));
}
if (isset($form_state['values']['field_num'])) {
@@ -387,7 +387,7 @@ function data_ui_create_form_submit($form, &$form_state) {
$schema['primary key'] = $primary;
// Create table.
- if ($table = data_create_table(data_name(trim($form_state['storage']['name'])), $schema, trim($form_state['storage']['title']))) {
+ if ($table = data_create_table(trim($form_state['storage']['name']), $schema, trim($form_state['storage']['title']))) {
$meta = $table->update(array('meta' => $meta));
drupal_set_message(t('Created table !table', array('!table' => $table->get('name'))));
}