You are here

function nodesinblock_queue_submit in Nodes In Block 6

Same name and namespace in other branches
  1. 7 nodesinblock.admin.inc \nodesinblock_queue_submit()

Submit callback, save weights after queue submit.

File

./nodesinblock.admin.inc, line 283
Administration page for nodes in block.

Code

function nodesinblock_queue_submit($form, &$form_state) {
  foreach ($form_state['values']['nodes'] as $node) {
    db_query("UPDATE {nodesinblock} set weight = %d WHERE delta = %d AND nid = %d", $node['weight'], $form_state['values']['delta'], $node['nid']);
  }
}