You are here

function smileys_admin_delete_confirm in Smileys 6

Same name and namespace in other branches
  1. 5 smileys.module \smileys_admin_delete_confirm()
1 string reference to 'smileys_admin_delete_confirm'
smileys_menu in ./smileys.module
Implementation of hook_menu().

File

./smileys.admin.inc, line 309

Code

function smileys_admin_delete_confirm(&$form_state, $smiley_id) {
  $smiley_id = $smiley_id ? $smiley_id : arg(4);
  $smiley = db_fetch_array(db_query('SELECT * FROM {smileys} WHERE id = %d', $smiley_id));
  $form = array();
  return confirm_form($form, t('Are you sure you want to delete the smiley %acronyms?', array(
    '%acronyms' => $smiley['acronyms'],
  )), 'admin/settings/smileys', t(''), t('Delete'), t('Cancel'), 'smileys_admin_delete');
}