cancle button

markfoodyburton - January 29, 2008 - 08:49
Project:Checkout (Content locking)
Version:5.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

Given that moving off the page effectively cancels the edit, but people are likely to press the back button, providing a cancel "button" might help

Put something like this in your checkout_form_alter, and at least you get a cancel link...

$node = $form['#node'];
if ($node->nid) {
// Place checkbox immediately after the log message

$form['preview']['#prefix'] = l(t('Cancel'),drupal_get_path_alias('node/'.$node->nid));

}

 
 

Drupal is a registered trademark of Dries Buytaert.