I'm using draggable views for an interface I want to expose to web visitors (authenticated but not trusted etc)The "draggable" views module does a lot more than the "drag" in the name . I'm using it to let users order lists of things they've bookmarked independent of other users.

I'm planning to have the site work just as well for mobile users as for desktop users.

"out of the box" , The drag doesn't work at all on mobile in the "drag' form but the module works great when you push the "show row weights" option with the drop down select boxes it comes with. I'm happy using that select box for desktop users too.

> I want to set the default state of the draggable function to "show row weights" . I can just hide the switch to toggle to back to draggable with css on the public facing screens. I still want administrative site users to be able to use the draggable features.

? is there an easy way to toggle the default initial choice of "show row weights" vs "hide row weights" for users ?

I can't seem to find where to set the default value to the opposite state it starts with.

Comments

Tom22’s picture

I Found a way to achieve my goal here:

http://drupal.aspcode.net/ppst/63547274810018958099980/how-to-remove-sho...

That 6th response let me change hook_form_alter in a way that disabled the draggable option in draggable_views for me. (and removed the toggle choice text too)

It is described as working on a form by form basis but I hacked up his conditions in the "if" statement in a way that probably made it true beyond the given form ( removing the "' field_ui_field_overview_form' && $form['#bundle'] == " )

My altered version ended up breaking the draggable function of draggable_views everywhere.

It didn't break the draggablity of features in the administrative screens not related to the dv module.