From ff6ce75f7b41eb8806b679d3901f7ac6cee8a6e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 19 Dec 2007 10:58:35 +0000 Subject: #200370 by quicksketch: fixes to drag and drop support to make it usable by CCK --- includes/common.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 353010634..81d350452 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -2101,6 +2101,11 @@ function drupal_get_js($scope = 'header', $javascript = NULL) { * ); * @endcode * + * When tree relationships are present, the two additional classes + * 'tabledrag-leaf' and 'tabledrag-root' can be used to refine the behavior: + * - Rows with the 'tabledrag-leaf' class cannot have child rows. + * - Rows with the 'tabledrag-root' class cannot be nested under a parent row. + * * Calling drupal_add_tabledrag() would then be written as such: * @code * drupal_add_tabledrag('my-module-table', 'order', 'sibling', 'my-elements-weight'); -- cgit v1.2.3