You are here

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

Same name and namespace in other branches
  1. 6.2 content_lock.module \content_lock_cancel_submit()
  2. 7 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
Add cancel button.

File

./content_lock.module, line 587
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);
}