You are here

function book_access_remove_user_permissions_submit in Book access 6

File

./book_access.admin.inc, line 286
Administration interface for the Book access module.

Code

function book_access_remove_user_permissions_submit($form, &$form_state) {
  db_query("DELETE FROM {book_access_user} WHERE nid = %d AND uid = %d", $form['#bid'], $form['#uid']);
  _book_access_permissions_warning();
  $form_state['redirect'] = 'node/' . $form['#bid'] . '/book_access';
}