You are here

function imagepicker_admin_orphans_form_submit in Image Picker 7

Same name and namespace in other branches
  1. 6.2 imagepicker.admin.inc \imagepicker_admin_orphans_form_submit()

File

./imagepicker.admin.inc, line 1263
@author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function imagepicker_admin_orphans_form_submit($form, &$form_state) {
  $result = imagepicker_admin_orphans_do($form_state['values']['orphanids'], $form_state['values']['orphans_delete'], $form_state['values']['reallocate_to_user']);
  if (is_array($result)) {
    $message = $result[0];
    $status = $result[1];
    drupal_set_message($message, $status ? 'status' : 'error');
  }
  drupal_goto(IMAGEPICKER_ADMIN_PATH);
}