You are here

function nodewords_delete in Nodewords: D6 Meta Tags 6.2

Show the meta tag delete form.

File

./nodewords.admin.inc, line 27
Administration forms.

Code

function nodewords_delete($form_state, $tag) {
  $form = array();
  $form['tagid'] = array(
    '#type' => 'value',
    '#value' => $tag->tagid,
  );
  $form['name'] = array(
    '#type' => 'value',
    '#value' => $tag->name,
  );
  return confirm_form($form, t('Are you sure you want to delete the %tag_name meta tag?', array(
    '%tag_name' => $tag->name,
  )), isset($_GET['destination']) ? $_GET['destination'] : 'admin/content/nodewords' . $tag->tagid, t('This action cannot be undone.'), t('Delete meta tag'), t('Cancel'));
}