You are here

function smileys_promote_handle in Smileys 5

Same name and namespace in other branches
  1. 6 smileys.admin.inc \smileys_promote_handle()
1 string reference to 'smileys_promote_handle'
smileys_menu in ./smileys.module
Implementation of hook_menu().

File

./smileys.module, line 379

Code

function smileys_promote_handle($action, $id = NULL) {
  if (!empty($id) && ($action == 0 || $action == 1)) {
    db_query('UPDATE {smileys} SET promote_to_box=%d WHERE id=%d', $action, $id);
    exit;
  }
  else {
    drupal_access_denied();
    return;
  }
}