function book_admin_edit_validate
Same name and namespace in other branches
- 7.x drupal-7.x/modules/book/book.admin.inc \book_admin_edit_validate()
Check that the book has not been changed while using the form.
See also
Archivo
- drupal-6.x/
modules/ book/ book.admin.inc, line 87 - Admin page callbacks for the book module.
Código
function book_admin_edit_validate($form, &$form_state) {
if ($form_state['values']['tree_hash'] != $form_state['values']['tree_current_hash']) {
form_set_error('', t('This book has been modified by another user, the changes could not be saved.'));
$form_state['rebuild'] = TRUE;
}
}