You are here

function smiley_import_delete in Smiley 6

Menu callback; Delete a Smiley pack.

2 calls to smiley_import_delete()
smiley_import_add_pak in ./smiley_import.module
smiley_import_add_plist in ./smiley_import.module
1 string reference to 'smiley_import_delete'
smiley_import_menu in ./smiley_import.module
Implementation of hook_menu().

File

./smiley_import.module, line 237

Code

function smiley_import_delete($packname, $redirect = 0) {
  $pack = $packname ? $packname : arg(5);
  db_query("DELETE FROM {smiley} WHERE package = '%s'", $pack);
  if ($redirect == 0) {
    drupal_set_message(t('Smiley package %pack uninstalled.', array(
      '%pack' => $pack,
    )));
    drupal_goto('admin/settings/smiley/import');
  }
}