You are here

function simplemeta_meta_delete_confirm in Simple Meta 7

Same name and namespace in other branches
  1. 6.2 simplemeta.admin.inc \simplemeta_meta_delete_confirm()

SimpleMeta deletion confirmation form builder.

1 string reference to 'simplemeta_meta_delete_confirm'
simplemeta_menu in ./simplemeta.module
Implements hook_menu().

File

./simplemeta.admin.inc, line 66
Administration

Code

function simplemeta_meta_delete_confirm($form, &$form_state, $meta) {
  $form['sid'] = array(
    '#type' => 'value',
    '#value' => $meta->sid,
  );
  return confirm_form($form, t('Are you sure you want to delete Simplemeta %sid?', array(
    '%sid' => $meta->sid,
  )), isset($_GET['destination']) ? $_GET['destination'] : 'admin/content/simplemeta/' . $meta->sid . '/edit', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}