/[drupal]/contributions/modules/tablemanager/includes/tables.inc
ViewVC logotype

Diff of /contributions/modules/tablemanager/includes/tables.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2, Tue Apr 15 21:01:44 2008 UTC revision 1.3, Sun Apr 20 17:39:29 2008 UTC
# Line 259  function tablemanager_table_add_step_thr Line 259  function tablemanager_table_add_step_thr
259      db_query("UPDATE {tablemanager} SET name = '%s' WHERE tid = %d", $name, $name);      db_query("UPDATE {tablemanager} SET name = '%s' WHERE tid = %d", $name, $name);
260    }    }
261    drupal_set_message(t('Table has been created.'));    drupal_set_message(t('Table has been created.'));
262    watchdog('tablemanager', 'tablemanager: added table \'%table\'.', array('%table' => $sql->tid), WATCHDOG_NOTICE, l('view', "tablemanager/$sql->tid"));    watchdog('tablemanager', 'tablemanager: added table \'%table\'.', array('%table' => $sql->tid), WATCHDOG_NOTICE, l('view', "tables/$sql->tid"));
263    menu_rebuild();    menu_rebuild();
264    drupal_goto($storage['backpage']);    drupal_goto($storage['backpage']);
265  } // tablemanager_table_add_step_three  } // tablemanager_table_add_step_three
# Line 363  function tablemanager_table_edit($form_s Line 363  function tablemanager_table_edit($form_s
363      '#return_value' => "NULL",      '#return_value' => "NULL",
364      '#value' => is_null($sort) ? TRUE : FALSE, // sort wasn't set so reflect that here      '#value' => is_null($sort) ? TRUE : FALSE, // sort wasn't set so reflect that here
365    );    );
   $form['#attributes'] = array('class' => 'confirmation');  
   $form['description'] = array('#value' => t('Changes are not permanent until after you click save.'));  
366    
367      $form['description'] = array('#value' => t('Changes are not permanent until after you click save.'));
368    $form['actions'] = array('#prefix' => '<div class="container-inline">', '#suffix' => '</div>');    $form['actions'] = array('#prefix' => '<div class="container-inline">', '#suffix' => '</div>');
369    $form['actions']['submit'] = array('#type' => 'submit', '#value' => t('Save'));    $form['actions']['submit'] = array('#type' => 'submit', '#value' => t('Save'));
370    $form['actions']['cancel'] = array('#value' => l(t('Cancel'), 'admin/content/tablemanager'));    $form['actions']['cancel'] = array('#value' => l(t('Cancel'), 'admin/content/tablemanager'));
# Line 391  function tablemanager_table_edit_submit( Line 390  function tablemanager_table_edit_submit(
390  } // tablemanager_table_edit_submit  } // tablemanager_table_edit_submit
391    
392  function theme_tablemanager_table_edit($form) {  function theme_tablemanager_table_edit($form) {
393    drupal_add_tabledrag('tablemanager-table-edit', 'order', 'sibling', 'header-weight');    drupal_add_tabledrag('tablemanager-table-edit', 'order', 'self', 'header-weight');
394    $header = array(t('Column Title'), t('Entry Type'), t('Required'), t('Sortable'), t('Default<br/>(sorting)'), t('Weight'), t('Operations'));    $header = array(t('Column Title'), t('Entry Type'), t('Required'), t('Sortable'), t('Default<br/>(sorting)'), t('Weight'), t('Operations'));
395    $output = drupal_render($form['name']);    $output = drupal_render($form['name']);
396    $output .= drupal_render($form['desc']);    $output .= drupal_render($form['desc']);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.2