You are here

function smiley_category_handle in Smiley 6

1 string reference to 'smiley_category_handle'
smiley_menu in ./smiley.module
Implementation of hook_menu().

File

./smiley.admin.inc, line 209

Code

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