Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Maybe it would be nice for other users, too.
I think that a good place could be the configuration settings for 'Draggable Table'-style inside views administration area.
Comments
Comment #1
sevi CreditAttribution: sevi commentedWrite a new module for customization issues.
In your custom_module.module file you simply write
where you have to replace {VIEW_NAME} with the view-name, {DISPLAY_ID} with the display_id and {BUTTON_LABEL} with your custom button label.
Easy enough? :)
Greetings,
sevi
Comment #2
M_Z CreditAttribution: M_Z commentedThank you for your instructions.
I know FAPI and I know how to change a form button value with it, but you can see in your own example that my hook_form_alter depends on two variables (VIEW_NAME and DISPLAY_ID). Each time I change one of them I have to adjust my hook_form_alter callback.
My idea was to put the 'Save' button text into the configuration settings where I can already find a lot of options in the 'Defaults: Style options: Draggable Table Settings' section. Then there is no need to adjust my customized button text if one of the above variables is changing.
But I can live with your suggestion. Thanks again.
I wanted to open another issue for a feature request, but after reading http://drupal.org/node/551522 I don't think that there is an easy solution: I use a draggable view as panel pane (with Panels 3). In the view I set AJAX to 'yes'. But as far as I can see there is no AJAX functionality when I click the draggable view 'Save' button. That means there is always a complete page request and not only a AJAX request which only updates my view pane, right?
Thank you in advance. Great module!
Comment #3
sevi CreditAttribution: sevi commentedYou're right, that's actually a great idea. I don't have time at the moment but I put it on top of my todo list :)
Right. Such a ajax request sounds very useful too. Another line on my todo list.
Greetings,
sevi
Comment #4
sevi CreditAttribution: sevi commentedJust committed to 6--3 branch: #605206: Make Save-button text customizable
Comment #5
M_Z CreditAttribution: M_Z commentedThank you very much!
And your description of this option ( '#description' => t('Make the workflow more intuitive for the user.')) is a good explanation of my intention with this feature request.
Comment #6
sevi CreditAttribution: sevi commented