You are here

function scald_atom_delete_confirm in Scald: Media Management made easy 7

Handles the deletion of an existing atom.

2 string references to 'scald_atom_delete_confirm'
scald_atom_delete_confirm_ajax in includes/scald.pages.inc
Handles the deletion of an existing atom in ctools modal.
scald_menu in ./scald.module
Implements hook_menu().

File

includes/scald.pages.inc, line 445
This file contains the various callbacks related to Scald defined pages.

Code

function scald_atom_delete_confirm($form, &$form_state, $atom) {

  // Always provide entity id in the same form key as in the entity edit form.
  $form['sid'] = array(
    '#type' => 'value',
    '#value' => $atom->sid,
  );
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $atom->title,
  )), 'admin/content/atoms', t('<p>Note that unchecking the Fetch checkbox in the "<em>Openly available actions</em>" field of this atom <a href="!url">edit form</a> makes the atom disappear for everyone but Scald administrators, and is usually a better idea.</p><p>This action cannot be undone.</p>', array(
    '!url' => url("atom/{$atom->sid}/edit"),
  )), t('Delete'), t('Cancel'));
}