You are here

function reviews_list_submit in Reviews 7

Confirm handler for review_list form.

File

includes/reviews.admin.inc, line 254
This file contains all the functions necessary for the admin pages of the reviews system.

Code

function reviews_list_submit($form, &$form_state) {
  if ($form_state['triggering_element']['#value'] == t('Delete')) {

    // Delete the selected reviews.
    if ($form_state['values']['delete'] === TRUE) {
      return reviews_list_confirm_delete_submit($form, $form_state);
    }

    // Rebuild the form to confirm review deletion.
    $form_state['rebuild'] = TRUE;
    $form_state['confirm_delete'] = TRUE;
    return;
  }
}