overwrite existing table
This commit is contained in:
@@ -178,18 +178,18 @@ function _booking_manual_email_selecttype_dropdown_callback($form, &$form_state)
|
|||||||
|
|
||||||
//form_set_cache($form['#build_id'], $cached_form, $form_state);
|
//form_set_cache($form['#build_id'], $cached_form, $form_state);
|
||||||
|
|
||||||
/*
|
|
||||||
foreach (element_children($form['items']) as $key) {
|
foreach (element_children($form['table']) as $key) {
|
||||||
if (is_numeric($key)) {
|
if (is_numeric($key)) {
|
||||||
unset($form['table'][$key]);
|
unset($form['table'][$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
// add new radios to tableselect
|
// add new radios to tableselect
|
||||||
form_builder($form['#form_id'], $form['new']['table'], $form_state);
|
form_builder($form['#form_id'], $form['table'], $form_state);
|
||||||
// remove current value
|
// remove current value
|
||||||
//unset($form['table']['#default_value']);
|
unset($form['table']['#default_value']);
|
||||||
//unset($form['table']['#value']);
|
unset($form['table']['#value']);
|
||||||
|
|
||||||
watchdog('booking_debug', "<pre>Manual email table form array\n@info</pre>", array('@info' => print_r( $form, true)));
|
watchdog('booking_debug', "<pre>Manual email table form array\n@info</pre>", array('@info' => print_r( $form, true)));
|
||||||
watchdog('booking_debug', "<pre>Manual email rendered table\n@info</pre>", array('@info' => print_r( drupal_render($form['table']), true)));
|
watchdog('booking_debug', "<pre>Manual email rendered table\n@info</pre>", array('@info' => print_r( drupal_render($form['table']), true)));
|
||||||
|
Reference in New Issue
Block a user