You are here

function crm_core_user_sync_admin_delete_rule_form in CRM Core 7

Same name and namespace in other branches
  1. 8.2 modules/crm_core_user_sync/crm_core_user_sync.admin.inc \crm_core_user_sync_admin_delete_rule_form()

Delete rule form.

1 string reference to 'crm_core_user_sync_admin_delete_rule_form'
crm_core_user_sync_menu in modules/crm_core_user_sync/crm_core_user_sync.module
Implements hook_menu()

File

modules/crm_core_user_sync/crm_core_user_sync.admin.inc, line 274

Code

function crm_core_user_sync_admin_delete_rule_form($form, &$form_state, $rule_key) {
  $form['rule_key'] = array(
    '#type' => 'value',
    '#value' => $rule_key,
  );
  $question = t('Are you sure you want to delete the user synchronization rule?');
  $path = 'admin/config/crm-core/user-sync';
  return confirm_form($form, $question, $path);
}