3

I have a tabledrag with more than 20 entries. Much more. Default weight range is from -10 to +10, so it can only order first 20 entries. Every additional one have weight of 10 and is ordered by secondary means like ID, name or whatever, and not the way user set it to. How can I expand that range? I can't see anything like that in drupal_add_tabledrag documentation.

My form definition is pretty much copy-paste from Examples for Developers.

4
  • It definitely should be possible too because I have seen tables with a wider range of weights than that.
    – rooby
    Commented Oct 23, 2013 at 12:03
  • check this drupal.org/node/117274
    – Bala
    Commented Oct 23, 2013 at 12:05
  • @rooby I believe it is possible. My problem is that I don't know how and can't find it now. Probably I'm mind-blind or something... I feel really bad about asking so "stupid" question.
    – Mołot
    Commented Oct 23, 2013 at 12:05
  • @Bala It's Drupal 6, I'm it 7, and it seems it is not possible? Buth both rooby and I have seen it working. Just can't access the code.
    – Mołot
    Commented Oct 23, 2013 at 12:07

1 Answer 1

5

If you are using a field of type "weight" like in the examples module you need to use the #delta attribute.

1
  • 1
    Right, thanks. I knew it's obvious (once you remember it...) 2 minutes to accept ;)
    – Mołot
    Commented Oct 23, 2013 at 12:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.