You are here

function freelinking_multiple_delete_confirm_submit in Freelinking 6

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

File

./freelinking.module, line 417

Code

function freelinking_multiple_delete_confirm_submit($form_id, &$form_state) {
  if ($form_state['values']['confirm']) {
    foreach ($form_state['values']['links'] as $hash => $phrase) {
      _freelinking_delete($hash);
    }

    // endforeach looping through $freelinks
  }

  // endif confirm
  drupal_set_message(t('The freelinks have been deleted.'));
  return 'freelinking';
}