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.
Depending on the content type it would be nice to change the value of the Publish button. I couldn't figure out how to use hook_form_alter to change the value so I just changed it in your module...but it would be nice to have this as an option. For instance: My content type is "Message". I change the value of the Publish button to "Send Message" as it's more intuitive.
Thanks for a great module!
Comment | File | Size | Author |
---|---|---|---|
#2 | option_to_rename_the-2013228-2.patch | 4.43 KB | annya |
Comments
Comment #1
JordiTR CreditAttribution: JordiTR commentedSame comment here, which kink of "hook_alter" do we need to change the button name?? When a project requires that kind of workflow it's very likely that this button should rename to adapt to the workflow. Any idea?
Comment #2
annya CreditAttribution: annya commentedBasic functionality for Rename Publish/Unpublish button was added. You can set button names here admin/config/content/publish_button and it will be applied for all published/unpublished buttons(node add/edit form and views). Labels for buttons aren't content type dependent yet.