First of all thank you for contributing this module. It meets the need I had for a project. Upon review I noticed quite a few things that do not follow the Drupal coding standards and best practices. I would like to offer a patch that addresses these issues.

This patch also addresses this issue [Workbench moderation buttons should check revisioning status before overriding form submit buttons.](https://www.drupal.org/node/2130139)

Comments

sebastix’s picture

I get this error:

Fatal error: Call to undefined function workbench_moderation_node_moderated() in ../workbench_moderation_buttons/workbench_moderation_buttons.module on line 16

I'm using workbench moderation version 7.x-1.3 (https://www.drupal.org/project/workbench_moderation).

saltednut’s picture

Works with 7.x-1.x-dev

damienmckenna’s picture

Status: Active » Needs work

Sebasian: You should upgrade to Workbench Moderation 7.x-1.x-dev until 1.4 is released, there are several important fixes in -dev that you could benefit from. This patch was tested against the WM -dev release.

FYI the patch itself needs a little tweaking - the module is called "Workbench Moderation", the word "weight" is misspelled as "wieght", and there's no need to specify a "version" line in the info file, that's automatically added by the package manager.

saltednut’s picture

Project: » Workbench Moderation Buttons

Moved over to new full project version.

saltednut’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.