summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-11-20 20:13:04 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-11-20 20:13:04 +0000
commit8bd692d618b1ec6a2702a7a8303d14cadd80a2b1 (patch)
tree59df3284c566e03579d904102cedcec75621afb6 /modules
parent4c0a0006bdea2d421085982ce54fe4ca144814b1 (diff)
downloadbrdo-8bd692d618b1ec6a2702a7a8303d14cadd80a2b1.tar.gz
brdo-8bd692d618b1ec6a2702a7a8303d14cadd80a2b1.tar.bz2
#193572 by Crell: fix drag and drop documentation and add drag and drop ordering to filter formats
Diffstat (limited to 'modules')
-rw-r--r--modules/filter/filter.admin.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/filter/filter.admin.inc b/modules/filter/filter.admin.inc
index 697e631ca..b2a5aaca0 100644
--- a/modules/filter/filter.admin.inc
+++ b/modules/filter/filter.admin.inc
@@ -357,13 +357,19 @@ function theme_filter_admin_order($form) {
foreach (element_children($form['names']) as $id) {
// Don't take form control structures.
if (is_array($form['names'][$id])) {
- $rows[] = array(drupal_render($form['names'][$id]), drupal_render($form['weights'][$id]));
+ $form['weights'][$id]['#attributes']['class'] = 'filter-order-weight';
+ $rows[] = array(
+ 'data' => array(drupal_render($form['names'][$id]), drupal_render($form['weights'][$id])),
+ 'class' => 'draggable',
+ );
}
}
- $output = theme('table', $header, $rows);
+ $output = theme('table', $header, $rows, array('id' => 'filter-order'));
$output .= drupal_render($form);
+ drupal_add_tabledrag('filter-order', 'order', 'sibling', 'filter-order-weight', NULL, NULL, FALSE);
+
return $output;
}