You are here

function book_access_ui_reset_all_submit in Book access 7.2

Form submission callback for book_access_ui_grants_form().

See also

book_access_ui_grants_form()

1 string reference to 'book_access_ui_reset_all_submit'
book_access_ui_form_book_admin_settings_alter in ./book_access_ui.module
Implements hook_form_FORM_ID_alter() for book_admin_settings().

File

./book_access_ui.module, line 88
User interface for the Book access module.

Code

function book_access_ui_reset_all_submit($form, &$form_state) {
  $destination = array();
  if (isset($_GET['destination'])) {
    $destination = drupal_get_destination();
    unset($_GET['destination']);
  }
  $form_state['redirect'] = array(
    'book_access/reset_all',
    array(
      'query' => $destination,
    ),
  );
}