function nodequeue_ajax_add in Nodequeue 5.2
Page callback to ajaxily add a node.
1 string reference to 'nodequeue_ajax_add'
- nodequeue_menu in ./
nodequeue.module - Implementation of hook_menu
File
- ./
nodequeue.module, line 1284
Code
function nodequeue_ajax_add() {
$sqid = $_POST['sqid'];
$position = $_POST['position'];
$string = $_POST['add'];
$output = _nodequeue_ajax_add($sqid, $position, $string);
// let the world know this isn't normal output.
drupal_set_header('Content-type: text/javascript');
print drupal_to_js($output);
exit;
}