You are here

function cctags_settings_delete_item in cctags 7

Same name and namespace in other branches
  1. 6 cctags.admin.inc \cctags_settings_delete_item()
1 string reference to 'cctags_settings_delete_item'
cctags_menu in ./cctags.module
Implementation of hook_menu

File

./cctags.admin.inc, line 460

Code

function cctags_settings_delete_item($form, $form_state, $cctid) {
  $items = _cctags_get_settings($cctid);
  $item = $items[$cctid];
  $form['info'] = array(
    '#type' => 'hidden',
    '#value' => $item['name'],
  );
  $form['cctid'] = array(
    '#type' => 'hidden',
    '#value' => $cctid,
  );
  return confirm_form($form, t('Are you sure you want to delete the cctags item %name?', array(
    '%name' => $item['name'],
  )), 'admin/settings/content/cctags', '', t('Delete'), t('Cancel'));
}