summaryrefslogtreecommitdiff
path: root/includes
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 /includes
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 'includes')
-rw-r--r--includes/common.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 94a5cc537..b6963c677 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1957,6 +1957,16 @@ function drupal_get_js($scope = 'header', $javascript = NULL) {
* $form['my_elements'][$delta]['weight']['#attributes']['class'] = "my-elements-weight";
* @endcode
*
+ * Each row of the table must also have a class of "draggable" in order to enable the
+ * drag handles:
+ * @code
+ * $row = array(...);
+ * $rows[] = array(
+ * 'data' => $row,
+ * 'class' => 'draggable',
+ * );
+ * @endcode
+ *
* Calling drupal_add_tabledrag() would then be written as such:
* @code
* drupal_add_tabledrag('my-module-table', 'order', 'sibling', 'my-elements-weight');