To complete the new workflow-ng logging module created by the GHOP task http://code.google.com/p/google-highly-open-participation-drupal/issues/... add the missing views integration to it.
Provide "views fields" for each database column and views filter for 'type' and 'category'. Also add a sort criteria for the time.
As Views 5.x-1.x doesn't support listing users directly, make use of the usernode module (http://drupal.org/project/usernode) and provide the user views integration for the usernode. You can take the buddylist views integration as guidance (http://drupal.org/project/buddylist). Furthermore http://drupal.org/handbook/modules/views/api documents the views API.

Comments

fago’s picture

Title: GHOP: views integration for the workflow-ng logging module » GHOP #159: views integration for the workflow-ng logging module
corsix’s picture

Status: Active » Needs review
StatusFileSize
new9.72 KB

Attached first draft.

fago’s picture

Status: Needs review » Needs work

* You need to check, whether the usernode module is active. If not, the table "usernode" might not exist, which might produce errors. So only add the user views integration if usernode is active.

* The default views list all nodes / users, even if there are no log entries. I think you need to do a inner join.

* Naming: Workflow-ng doesn't use the term "node" in the UI. Use "content" instead.

corsix’s picture

Status: Needs work » Needs review
StatusFileSize
new9.86 KB

* Added a module_exists check for usernode
* Changed table joins from left to inner
* Changed the name/menu path/description of the node-log view to Content log

fago’s picture

Status: Needs review » Fixed

that's it - good work as usual :)
-> committed to 5.x-2.x, thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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