You are here

function smileys_promote_handle in Smileys 6

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

File

./smileys.admin.inc, line 219

Code

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