You are here

function deploy_list_submit in Deploy - Content Staging 5

deploy plan items form submit (just updates the weightings)

File

./deploy.module, line 428

Code

function deploy_list_submit($form_id, $form_values) {
  foreach ($form_values as $i => $item) {
    if (is_array($item)) {
      db_query("update {deploy_plan_items} set weight = %d where iid = %d", $item['weight'], $item['iid']);
    }
  }
  drupal_set_message(t('Deployment plan saved.'));
  return 'admin/build/deploy/';
}