You are here

function google_adwords_path_code_delete_form in Google AdWords Conversion Tracking 7.2

Same name and namespace in other branches
  1. 8 modules/google_adwords_path/google_adwords_path.admin.inc \google_adwords_path_code_delete_form()

Confirmation form before deleting conversion code.

1 string reference to 'google_adwords_path_code_delete_form'
google_adwords_path_menu in modules/google_adwords_path/google_adwords_path.module
Implements hook_menu().

File

modules/google_adwords_path/google_adwords_path.admin.inc, line 167
Admin page for Google Adwords Path.

Code

function google_adwords_path_code_delete_form($form, &$form_state, $cid) {
  $form = array();
  $path = 'admin/config/system/google_adwords/path';
  $code = google_adwords_path_load_code_by_cid($cid);
  $form['cid'] = array(
    '#type' => 'value',
    '#value' => $code['cid'],
  );
  $form['name'] = array(
    '#type' => 'value',
    '#value' => $code['name'],
  );
  return confirm_form($form, t('Are you sure you want to delete %name?', array(
    '%name' => $code['name'],
  )), $path);
}