function smiley_promote_handle in Smiley 6
1 string reference to 'smiley_promote_handle'
- smiley_menu in ./
smiley.module - Implementation of hook_menu().
File
- ./
smiley.admin.inc, line 220
Code
function smiley_promote_handle($action, $id = NULL) {
if (!empty($id) && ($action == -1 || $action == 0 || $action == 1)) {
db_query('UPDATE {smiley} SET promote_to_box=%d WHERE id=%d', $action, $id);
exit;
}
else {
drupal_access_denied();
return;
}
}