function freelinking_multiple_delete_confirm_submit in Freelinking 6.2
Same name and namespace in other branches
- 5 freelinking.module \freelinking_multiple_delete_confirm_submit()
- 6 freelinking.module \freelinking_multiple_delete_confirm_submit()
File
- ./
freelinking.module, line 411
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';
}