You are here

function ip_ranges_delete in IP Ranges 7

Same name and namespace in other branches
  1. 7.2 ip_ranges.admin.inc \ip_ranges_delete()

IP deletion confirm page.

See also

ip_ranges_delete_submit()

1 string reference to 'ip_ranges_delete'
ip_ranges_menu in ./ip_ranges.module
Implements hook_menu().

File

./ip_ranges.admin.inc, line 124
Page callback file for the ip ranges module.

Code

function ip_ranges_delete($form, &$form_state, $bid, $ip) {
  $form['ip_range'] = array(
    '#type' => 'value',
    '#value' => $bid,
  );
  return confirm_form($form, t('Are you sure you want to delete ip/range %ip?', array(
    '%ip' => str_replace('-', ' - ', $ip),
  )), 'admin/config/people/ip-ranges', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}