You are here

function smileys_category_handle in Smileys 6

1 string reference to 'smileys_category_handle'
smileys_menu in ./smileys.module
Implementation of hook_menu().

File

./smileys.admin.inc, line 208

Code

function smileys_category_handle($orig_name, $new_name) {
  if (!empty($orig_name) && !empty($new_name)) {
    db_query("UPDATE {smileys} SET package='%s' WHERE package='%s'", $new_name, $orig_name);
    exit;
  }
  else {
    drupal_access_denied();
    return;
  }
}