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!

CommentFileSizeAuthor
#2 option_to_rename_the-2013228-2.patch4.43 KBannya
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JordiTR’s picture

Same 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?

annya’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
4.43 KB

Basic 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.