function imagepicker_admin_orphans_form_submit in Image Picker 6.2
Same name and namespace in other branches
- 7 imagepicker.admin.inc \imagepicker_admin_orphans_form_submit()
File
- ./
imagepicker.admin.inc, line 1639 - admin settings functions
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);
}