You are here

function access_filter_form_confirm_delete in Access Filter 7

Form builder to confirmation of delete filter.

See also

access_filter_form_confirm_delete()

1 string reference to 'access_filter_form_confirm_delete'
access_filter_menu in ./access_filter.module
Implements hook_menu().

File

./access_filter.admin.inc, line 579
Administration pages for access filters.

Code

function access_filter_form_confirm_delete($form, &$form_state, $filter = NULL) {
  $form_state['filter'] = $filter;
  $form['#submit'] = array(
    'access_filter_form_confirm_delete_submit',
  );
  return confirm_form($form, t('Are you sure you want to delete the filter %title?', array(
    '%title' => $filter->name,
  )), 'admin/config/people/access_filter', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}