Have you considered adding some rules module integration?

The use scenario would be to add custom actions using rules when a user has a node locked.

Comments

bulldozer2003’s picture

Issue tags: +rules integration

add tag

bulldozer2003’s picture

crawley’s picture

Priority: Normal » Major

I need this too.

derhasi’s picture

Version: 7.x-1.1 » 6.x-2.9
Status: Active » Needs review
StatusFileSize
new3.24 KB

I'm currently working with the Drupal 6 version, and therefore wrote a D6 rules integration for the locked and release hooks.

In a similar way, that could be achieved in D7, but currently I cannot take time for that.

derhasi’s picture

StatusFileSize
new3.2 KB

Damn, I overlooked the dpm. there's the patch without dpm().

derhasi’s picture

StatusFileSize
new3.97 KB

Sorry, but content_lock.api.php listed the wrong hook, so that patch additionally contains a rename from hook_content_lock_release() to hook_content_lock_released() too. The rules event is changed for the naming too.

alibama’s picture

Has anyone tested this with drupal 7? looks perfect - any suggestions appreciated

dgastudio’s picture

Version: 6.x-2.9 » 7.x-2.0
Issue summary: View changes

any update?

kthull’s picture

Patch fails to apply for the version 7.x-2.0. I could use this feature as well!

patching file content_lock.api.inc
Hunk #1 succeeded at 177 (offset 25 lines).
patching file content_lock.module
Hunk #1 FAILED at 495.
Hunk #2 succeeded at 981 (offset 212 lines).
1 out of 2 hunks FAILED

kthull’s picture

Status: Needs review » Needs work
astonvictor’s picture

Status: Needs work » Closed (outdated)

I'm closing it because the issue was created a long time ago without any further steps.

if you still need it then raise a new one.
thanks