You are here

function deploy_update_item in Deploy - Content Staging 6

Same name and namespace in other branches
  1. 5 deploy.module \deploy_update_item()

Update a single item in a deployment plan with new data.

Currently I believe this is only used by system_settings_deploy since there is no easy way to uniquely identify and retrieve them. See that module for more details.

Parameters

$iid: Unique identifier for this deployment plan item

$data: The new data to be saved for this item.

1 call to deploy_update_item()
system_settings_deploy_form_submit in modules/system_settings_deploy/system_settings_deploy.module
Submit handler for systems settings forms that have deployment enabled.

File

./deploy.module, line 509
Deployment API which enables modules to deploy items between servers.

Code

function deploy_update_item($iid, $data) {
  db_query("UPDATE {deploy_plan_items} SET data = '%s' WHERE iid = %d", $data, $iid);
}