You are here

function freelinking_multiple_delete_confirm_submit in Freelinking 5

Same name and namespace in other branches
  1. 6 freelinking.module \freelinking_multiple_delete_confirm_submit()
  2. 6.2 freelinking.module \freelinking_multiple_delete_confirm_submit()

File

./freelinking.module, line 185

Code

function freelinking_multiple_delete_confirm_submit($form_id, $form_values) {
  if ($form_values['confirm']) {
    foreach ($form_values['links'] as $hash => $phrase) {
      _freelinking_delete($hash);
    }
    drupal_set_message(t('The freelinks have been deleted.'));
  }
  return 'freelinking';
}