Closed (fixed)
Project:
Workbench Moderation Buttons
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2014 at 22:04 UTC
Updated:
23 Oct 2014 at 17:54 UTC
Jump to comment: Most recent
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)
| Comment | File | Size | Author |
|---|---|---|---|
| workbench_moderation_buttons-coding-standards-2088327-0.patch | 5.63 KB | kepford |
Comments
Comment #1
sebastixI get this error:
Fatal error: Call to undefined function workbench_moderation_node_moderated() in ../workbench_moderation_buttons/workbench_moderation_buttons.module on line 16I'm using workbench moderation version 7.x-1.3 (https://www.drupal.org/project/workbench_moderation).
Comment #2
saltednutWorks with 7.x-1.x-dev
Comment #3
damienmckennaSebasian: 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.
Comment #4
saltednutMoved over to new full project version.
Comment #5
saltednutFixed per http://cgit.drupalcode.org/workbench_moderation_buttons/commit/?id=13585ff