You are here

function content_lock_cancel_submit in Content locking (anti-concurrent editing) 7

Same name and namespace in other branches
  1. 6.2 content_lock.module \content_lock_cancel_submit()
  2. 7.2 content_lock.module \content_lock_cancel_submit()

Callback for a cancel request on a form

1 string reference to 'content_lock_cancel_submit'
_content_lock_add_cancelbutton in ./content_lock.module

File

./content_lock.module, line 430
Allows users to lock documents for modification.

Code

function content_lock_cancel_submit(&$form, &$form_state) {

  // Release the node
  content_lock_release_own_item($form['#node']->nid, TRUE, TRUE);
}